home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / textutil.19 / textutil / textutils-1.19 / configure < prev    next >
Encoding:
Text File  |  1996-07-12  |  108.1 KB  |  4,069 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-maintainer-mode enable make rules and dependencies not useful
  16.                           (and sometimes confusing) to the casual installer"
  17. ac_help="$ac_help
  18.   --with-regex            use older regex in lieu of GNU rx for matching"
  19. ac_help="$ac_help
  20.   --disable-nls           do not use Native Language Support"
  21. ac_help="$ac_help
  22.   --with-included-gettext use the GNU gettext library included here"
  23. ac_help="$ac_help
  24.   --with-catgets          use catgets functions if available"
  25.  
  26. # Initialize some variables set by options.
  27. # The variables have the same names as the options, with
  28. # dashes changed to underlines.
  29. build=NONE
  30. cache_file=./config.cache
  31. exec_prefix=NONE
  32. host=NONE
  33. no_create=
  34. nonopt=NONE
  35. no_recursion=
  36. prefix=NONE
  37. program_prefix=NONE
  38. program_suffix=NONE
  39. program_transform_name=s,x,x,
  40. silent=
  41. site=
  42. srcdir=
  43. target=NONE
  44. verbose=
  45. x_includes=NONE
  46. x_libraries=NONE
  47. bindir='${exec_prefix}/bin'
  48. sbindir='${exec_prefix}/sbin'
  49. libexecdir='${exec_prefix}/libexec'
  50. datadir='${prefix}/share'
  51. sysconfdir='${prefix}/etc'
  52. sharedstatedir='${prefix}/com'
  53. localstatedir='${prefix}/var'
  54. libdir='${exec_prefix}/lib'
  55. includedir='${prefix}/include'
  56. oldincludedir='/usr/include'
  57. infodir='${prefix}/info'
  58. mandir='${prefix}/man'
  59.  
  60. # Initialize some other variables.
  61. subdirs=
  62. MFLAGS= MAKEFLAGS=
  63.  
  64. ac_prev=
  65. for ac_option
  66. do
  67.  
  68.   # If the previous option needs an argument, assign it.
  69.   if test -n "$ac_prev"; then
  70.     eval "$ac_prev=\$ac_option"
  71.     ac_prev=
  72.     continue
  73.   fi
  74.  
  75.   case "$ac_option" in
  76.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  77.   *) ac_optarg= ;;
  78.   esac
  79.  
  80.   # Accept the important Cygnus configure options, so we can diagnose typos.
  81.  
  82.   case "$ac_option" in
  83.  
  84.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  85.     ac_prev=bindir ;;
  86.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  87.     bindir="$ac_optarg" ;;
  88.  
  89.   -build | --build | --buil | --bui | --bu)
  90.     ac_prev=build ;;
  91.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  92.     build="$ac_optarg" ;;
  93.  
  94.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  95.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  96.     ac_prev=cache_file ;;
  97.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  98.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  99.     cache_file="$ac_optarg" ;;
  100.  
  101.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  102.     ac_prev=datadir ;;
  103.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  104.   | --da=*)
  105.     datadir="$ac_optarg" ;;
  106.  
  107.   -disable-* | --disable-*)
  108.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  109.     # Reject names that are not valid shell variable names.
  110.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  111.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  112.     fi
  113.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  114.     eval "enable_${ac_feature}=no" ;;
  115.  
  116.   -enable-* | --enable-*)
  117.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  118.     # Reject names that are not valid shell variable names.
  119.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  120.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  121.     fi
  122.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  123.     case "$ac_option" in
  124.       *=*) ;;
  125.       *) ac_optarg=yes ;;
  126.     esac
  127.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  128.  
  129.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  130.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  131.   | --exec | --exe | --ex)
  132.     ac_prev=exec_prefix ;;
  133.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  134.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  135.   | --exec=* | --exe=* | --ex=*)
  136.     exec_prefix="$ac_optarg" ;;
  137.  
  138.   -gas | --gas | --ga | --g)
  139.     # Obsolete; use --with-gas.
  140.     with_gas=yes ;;
  141.  
  142.   -help | --help | --hel | --he)
  143.     # Omit some internal or obsolete options to make the list less imposing.
  144.     # This message is too long to be a string in the A/UX 3.1 sh.
  145.     cat << EOF
  146. Usage: configure [options] [host]
  147. Options: [defaults in brackets after descriptions]
  148. Configuration:
  149.   --cache-file=FILE       cache test results in FILE
  150.   --help                  print this message
  151.   --no-create             do not create output files
  152.   --quiet, --silent       do not print \`checking...' messages
  153.   --version               print the version of autoconf that created configure
  154. Directory and file names:
  155.   --prefix=PREFIX         install architecture-independent files in PREFIX
  156.                           [$ac_default_prefix]
  157.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  158.                           [same as prefix]
  159.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  160.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  161.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  162.   --datadir=DIR           read-only architecture-independent data in DIR
  163.                           [PREFIX/share]
  164.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  165.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  166.                           [PREFIX/com]
  167.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  168.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  169.   --includedir=DIR        C header files in DIR [PREFIX/include]
  170.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  171.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  172.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  173.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  174.   --program-prefix=PREFIX prepend PREFIX to installed program names
  175.   --program-suffix=SUFFIX append SUFFIX to installed program names
  176.   --program-transform-name=PROGRAM
  177.                           run sed PROGRAM on installed program names
  178. EOF
  179.     cat << EOF
  180. Host type:
  181.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  182.   --host=HOST             configure for HOST [guessed]
  183.   --target=TARGET         configure for TARGET [TARGET=HOST]
  184. Features and packages:
  185.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  186.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  187.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  188.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  189.   --x-includes=DIR        X include files are in DIR
  190.   --x-libraries=DIR       X library files are in DIR
  191. EOF
  192.     if test -n "$ac_help"; then
  193.       echo "--enable and --with options recognized:$ac_help"
  194.     fi
  195.     exit 0 ;;
  196.  
  197.   -host | --host | --hos | --ho)
  198.     ac_prev=host ;;
  199.   -host=* | --host=* | --hos=* | --ho=*)
  200.     host="$ac_optarg" ;;
  201.  
  202.   -includedir | --includedir | --includedi | --included | --include \
  203.   | --includ | --inclu | --incl | --inc)
  204.     ac_prev=includedir ;;
  205.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  206.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  207.     includedir="$ac_optarg" ;;
  208.  
  209.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  210.     ac_prev=infodir ;;
  211.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  212.     infodir="$ac_optarg" ;;
  213.  
  214.   -libdir | --libdir | --libdi | --libd)
  215.     ac_prev=libdir ;;
  216.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  217.     libdir="$ac_optarg" ;;
  218.  
  219.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  220.   | --libexe | --libex | --libe)
  221.     ac_prev=libexecdir ;;
  222.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  223.   | --libexe=* | --libex=* | --libe=*)
  224.     libexecdir="$ac_optarg" ;;
  225.  
  226.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  227.   | --localstate | --localstat | --localsta | --localst \
  228.   | --locals | --local | --loca | --loc | --lo)
  229.     ac_prev=localstatedir ;;
  230.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  231.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  232.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  233.     localstatedir="$ac_optarg" ;;
  234.  
  235.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  236.     ac_prev=mandir ;;
  237.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  238.     mandir="$ac_optarg" ;;
  239.  
  240.   -nfp | --nfp | --nf)
  241.     # Obsolete; use --without-fp.
  242.     with_fp=no ;;
  243.  
  244.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  245.   | --no-cr | --no-c)
  246.     no_create=yes ;;
  247.  
  248.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  249.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  250.     no_recursion=yes ;;
  251.  
  252.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  253.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  254.   | --oldin | --oldi | --old | --ol | --o)
  255.     ac_prev=oldincludedir ;;
  256.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  257.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  258.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  259.     oldincludedir="$ac_optarg" ;;
  260.  
  261.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  262.     ac_prev=prefix ;;
  263.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  264.     prefix="$ac_optarg" ;;
  265.  
  266.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  267.   | --program-pre | --program-pr | --program-p)
  268.     ac_prev=program_prefix ;;
  269.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  270.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  271.     program_prefix="$ac_optarg" ;;
  272.  
  273.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  274.   | --program-suf | --program-su | --program-s)
  275.     ac_prev=program_suffix ;;
  276.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  277.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  278.     program_suffix="$ac_optarg" ;;
  279.  
  280.   -program-transform-name | --program-transform-name \
  281.   | --program-transform-nam | --program-transform-na \
  282.   | --program-transform-n | --program-transform- \
  283.   | --program-transform | --program-transfor \
  284.   | --program-transfo | --program-transf \
  285.   | --program-trans | --program-tran \
  286.   | --progr-tra | --program-tr | --program-t)
  287.     ac_prev=program_transform_name ;;
  288.   -program-transform-name=* | --program-transform-name=* \
  289.   | --program-transform-nam=* | --program-transform-na=* \
  290.   | --program-transform-n=* | --program-transform-=* \
  291.   | --program-transform=* | --program-transfor=* \
  292.   | --program-transfo=* | --program-transf=* \
  293.   | --program-trans=* | --program-tran=* \
  294.   | --progr-tra=* | --program-tr=* | --program-t=*)
  295.     program_transform_name="$ac_optarg" ;;
  296.  
  297.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  298.   | -silent | --silent | --silen | --sile | --sil)
  299.     silent=yes ;;
  300.  
  301.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  302.     ac_prev=sbindir ;;
  303.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  304.   | --sbi=* | --sb=*)
  305.     sbindir="$ac_optarg" ;;
  306.  
  307.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  308.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  309.   | --sharedst | --shareds | --shared | --share | --shar \
  310.   | --sha | --sh)
  311.     ac_prev=sharedstatedir ;;
  312.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  313.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  314.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  315.   | --sha=* | --sh=*)
  316.     sharedstatedir="$ac_optarg" ;;
  317.  
  318.   -site | --site | --sit)
  319.     ac_prev=site ;;
  320.   -site=* | --site=* | --sit=*)
  321.     site="$ac_optarg" ;;
  322.  
  323.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  324.     ac_prev=srcdir ;;
  325.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  326.     srcdir="$ac_optarg" ;;
  327.  
  328.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  329.   | --syscon | --sysco | --sysc | --sys | --sy)
  330.     ac_prev=sysconfdir ;;
  331.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  332.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  333.     sysconfdir="$ac_optarg" ;;
  334.  
  335.   -target | --target | --targe | --targ | --tar | --ta | --t)
  336.     ac_prev=target ;;
  337.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  338.     target="$ac_optarg" ;;
  339.  
  340.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  341.     verbose=yes ;;
  342.  
  343.   -version | --version | --versio | --versi | --vers)
  344.     echo "configure generated by autoconf version 2.10"
  345.     exit 0 ;;
  346.  
  347.   -with-* | --with-*)
  348.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  349.     # Reject names that are not valid shell variable names.
  350.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  351.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  352.     fi
  353.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  354.     case "$ac_option" in
  355.       *=*) ;;
  356.       *) ac_optarg=yes ;;
  357.     esac
  358.     eval "with_${ac_package}='$ac_optarg'" ;;
  359.  
  360.   -without-* | --without-*)
  361.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  362.     # Reject names that are not valid shell variable names.
  363.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  364.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  365.     fi
  366.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  367.     eval "with_${ac_package}=no" ;;
  368.  
  369.   --x)
  370.     # Obsolete; use --with-x.
  371.     with_x=yes ;;
  372.  
  373.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  374.   | --x-incl | --x-inc | --x-in | --x-i)
  375.     ac_prev=x_includes ;;
  376.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  377.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  378.     x_includes="$ac_optarg" ;;
  379.  
  380.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  381.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  382.     ac_prev=x_libraries ;;
  383.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  384.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  385.     x_libraries="$ac_optarg" ;;
  386.  
  387.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  388.     ;;
  389.  
  390.   *)
  391.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  392.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  393.     fi
  394.     if test "x$nonopt" != xNONE; then
  395.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  396.     fi
  397.     nonopt="$ac_option"
  398.     ;;
  399.  
  400.   esac
  401. done
  402.  
  403. if test -n "$ac_prev"; then
  404.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  405. fi
  406.  
  407. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  408.  
  409. # File descriptor usage:
  410. # 0 standard input
  411. # 1 file creation
  412. # 2 errors and warnings
  413. # 3 some systems may open it to /dev/tty
  414. # 4 used on the Kubota Titan
  415. # 6 checking for... messages and results
  416. # 5 compiler messages saved in config.log
  417. if test "$silent" = yes; then
  418.   exec 6>/dev/null
  419. else
  420.   exec 6>&1
  421. fi
  422. exec 5>./config.log
  423.  
  424. echo "\
  425. This file contains any messages produced by compilers while
  426. running configure, to aid debugging if configure makes a mistake.
  427. " 1>&5
  428.  
  429. # Strip out --no-create and --no-recursion so they do not pile up.
  430. # Also quote any args containing shell metacharacters.
  431. ac_configure_args=
  432. for ac_arg
  433. do
  434.   case "$ac_arg" in
  435.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  436.   | --no-cr | --no-c) ;;
  437.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  438.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  439.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  440.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  441.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  442.   esac
  443. done
  444.  
  445. # NLS nuisances.
  446. # Only set LANG and LC_ALL to C if already set.
  447. # These must not be set unconditionally because not all systems understand
  448. # e.g. LANG=C (notably SCO).
  449. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  450. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  451.  
  452. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  453. rm -rf conftest* confdefs.h
  454. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  455. echo > confdefs.h
  456.  
  457. # A filename unique to this package, relative to the directory that
  458. # configure is in, which we can look for to find out if srcdir is correct.
  459. ac_unique_file=src/fold.c
  460.  
  461. # Find the source files, if location was not specified.
  462. if test -z "$srcdir"; then
  463.   ac_srcdir_defaulted=yes
  464.   # Try the directory containing this script, then its parent.
  465.   ac_prog=$0
  466.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  467.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  468.   srcdir=$ac_confdir
  469.   if test ! -r $srcdir/$ac_unique_file; then
  470.     srcdir=..
  471.   fi
  472. else
  473.   ac_srcdir_defaulted=no
  474. fi
  475. if test ! -r $srcdir/$ac_unique_file; then
  476.   if test "$ac_srcdir_defaulted" = yes; then
  477.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  478.   else
  479.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  480.   fi
  481. fi
  482. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  483.  
  484. # Prefer explicitly selected file to automatically selected ones.
  485. if test -z "$CONFIG_SITE"; then
  486.   if test "x$prefix" != xNONE; then
  487.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  488.   else
  489.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  490.   fi
  491. fi
  492. for ac_site_file in $CONFIG_SITE; do
  493.   if test -r "$ac_site_file"; then
  494.     echo "loading site script $ac_site_file"
  495.     . "$ac_site_file"
  496.   fi
  497. done
  498.  
  499. if test -r "$cache_file"; then
  500.   echo "loading cache $cache_file"
  501.   . $cache_file
  502. else
  503.   echo "creating cache $cache_file"
  504.   > $cache_file
  505. fi
  506.  
  507. ac_ext=c
  508. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  509. ac_cpp='$CPP $CPPFLAGS'
  510. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  511. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  512.  
  513. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  514.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  515.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  516.     ac_n= ac_c='
  517. ' ac_t='    '
  518.   else
  519.     ac_n=-n ac_c= ac_t=
  520.   fi
  521. else
  522.   ac_n= ac_c='\c' ac_t=
  523. fi
  524.  
  525.  
  526.  
  527. if test "$program_transform_name" = s,x,x,; then
  528.   program_transform_name=
  529. else
  530.   # Double any \ or $.  echo might interpret backslashes.
  531.   cat <<\EOF_SED > conftestsed
  532. s,\\,\\\\,g; s,\$,$$,g
  533. EOF_SED
  534.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  535.   rm -f conftestsed
  536. fi
  537. test "$program_prefix" != NONE &&
  538.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  539. # Use a double $ so make ignores it.
  540. test "$program_suffix" != NONE &&
  541.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  542.  
  543. # sed with no file args requires a program.
  544. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  545.  
  546.  
  547. PACKAGE=textutils
  548. VERSION=1.19
  549. PACKAGE_VERSION="GNU $PACKAGE-$VERSION"
  550. cat >> confdefs.h <<EOF
  551. #define PACKAGE "$PACKAGE"
  552. EOF
  553.  
  554. cat >> confdefs.h <<EOF
  555. #define VERSION "$VERSION"
  556. EOF
  557.  
  558. cat >> confdefs.h <<EOF
  559. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  560. EOF
  561.  
  562.  
  563.  
  564.  
  565.  
  566. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  567.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  568. if test "${enable_maintainer_mode+set}" = set; then
  569.   enableval="$enable_maintainer_mode"
  570.   USE_MAINTAINER_MODE=$enableval
  571. else
  572.   USE_MAINTAINER_MODE=no
  573. fi
  574.  
  575.   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  576.   if test $USE_MAINTAINER_MODE = yes; then
  577.     MAINT=
  578.   else
  579.     MAINT='#M#'
  580.   fi
  581.   
  582.  
  583.  
  584. ALL_LINGUAS="de fr ko nl"
  585.  
  586. case $VERSION in
  587.   *[a-z]) README_ALPHA=README-alpha;;
  588.   *) README_ALPHA=;;
  589. esac
  590.  
  591.  
  592. # Extract the first word of "gcc", so it can be a program name with args.
  593. set dummy gcc; ac_word=$2
  594. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  595. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  596.   echo $ac_n "(cached) $ac_c" 1>&6
  597. else
  598.   if test -n "$CC"; then
  599.   ac_cv_prog_CC="$CC" # Let the user override the test.
  600. else
  601.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  602.   for ac_dir in $PATH; do
  603.     test -z "$ac_dir" && ac_dir=.
  604.     if test -f $ac_dir/$ac_word; then
  605.       ac_cv_prog_CC="gcc"
  606.       break
  607.     fi
  608.   done
  609.   IFS="$ac_save_ifs"
  610. fi
  611. fi
  612. CC="$ac_cv_prog_CC"
  613. if test -n "$CC"; then
  614.   echo "$ac_t""$CC" 1>&6
  615. else
  616.   echo "$ac_t""no" 1>&6
  617. fi
  618.  
  619. if test -z "$CC"; then
  620.   # Extract the first word of "cc", so it can be a program name with args.
  621. set dummy cc; ac_word=$2
  622. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  623. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  624.   echo $ac_n "(cached) $ac_c" 1>&6
  625. else
  626.   if test -n "$CC"; then
  627.   ac_cv_prog_CC="$CC" # Let the user override the test.
  628. else
  629.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  630.   ac_prog_rejected=no
  631.   for ac_dir in $PATH; do
  632.     test -z "$ac_dir" && ac_dir=.
  633.     if test -f $ac_dir/$ac_word; then
  634.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  635.         ac_prog_rejected=yes
  636.     continue
  637.       fi
  638.       ac_cv_prog_CC="cc"
  639.       break
  640.     fi
  641.   done
  642.   IFS="$ac_save_ifs"
  643. if test $ac_prog_rejected = yes; then
  644.   # We found a bogon in the path, so make sure we never use it.
  645.   set dummy $ac_cv_prog_CC
  646.   shift
  647.   if test $# -gt 0; then
  648.     # We chose a different compiler from the bogus one.
  649.     # However, it has the same basename, so the bogon will be chosen
  650.     # first if we set CC to just the basename; use the full file name.
  651.     shift
  652.     set dummy "$ac_dir/$ac_word" "$@"
  653.     shift
  654.     ac_cv_prog_CC="$@"
  655.   fi
  656. fi
  657. fi
  658. fi
  659. CC="$ac_cv_prog_CC"
  660. if test -n "$CC"; then
  661.   echo "$ac_t""$CC" 1>&6
  662. else
  663.   echo "$ac_t""no" 1>&6
  664. fi
  665.  
  666.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  667. fi
  668.  
  669. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  670. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  671.   echo $ac_n "(cached) $ac_c" 1>&6
  672. else
  673.   cat > conftest.c <<EOF
  674. #ifdef __GNUC__
  675.   yes;
  676. #endif
  677. EOF
  678. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  679.   ac_cv_prog_gcc=yes
  680. else
  681.   ac_cv_prog_gcc=no
  682. fi
  683. fi
  684.  
  685. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  686. if test $ac_cv_prog_gcc = yes; then
  687.   GCC=yes
  688.   if test "${CFLAGS+set}" != set; then
  689.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  690. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  691.   echo $ac_n "(cached) $ac_c" 1>&6
  692. else
  693.   echo 'void f(){}' > conftest.c
  694. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  695.   ac_cv_prog_gcc_g=yes
  696. else
  697.   ac_cv_prog_gcc_g=no
  698. fi
  699. rm -f conftest*
  700.  
  701. fi
  702.  
  703. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  704.     if test $ac_cv_prog_gcc_g = yes; then
  705.       CFLAGS="-g -O"
  706.     else
  707.       CFLAGS="-O"
  708.     fi
  709.   fi
  710. else
  711.   GCC=
  712.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  713. fi
  714.  
  715. ac_aux_dir=
  716. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  717.   if test -f $ac_dir/install-sh; then
  718.     ac_aux_dir=$ac_dir
  719.     ac_install_sh="$ac_aux_dir/install-sh -c"
  720.     break
  721.   elif test -f $ac_dir/install.sh; then
  722.     ac_aux_dir=$ac_dir
  723.     ac_install_sh="$ac_aux_dir/install.sh -c"
  724.     break
  725.   fi
  726. done
  727. if test -z "$ac_aux_dir"; then
  728.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  729. fi
  730. ac_config_guess=$ac_aux_dir/config.guess
  731. ac_config_sub=$ac_aux_dir/config.sub
  732. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  733.  
  734. # Find a good install program.  We prefer a C program (faster),
  735. # so one script is as good as another.  But avoid the broken or
  736. # incompatible versions:
  737. # SysV /etc/install, /usr/sbin/install
  738. # SunOS /usr/etc/install
  739. # IRIX /sbin/install
  740. # AIX /bin/install
  741. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  742. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  743. # ./install, which can be erroneously created by make from ./install.sh.
  744. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  745. if test -z "$INSTALL"; then
  746. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  747.   echo $ac_n "(cached) $ac_c" 1>&6
  748. else
  749.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  750.   for ac_dir in $PATH; do
  751.     # Account for people who put trailing slashes in PATH elements.
  752.     case "$ac_dir/" in
  753.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  754.     *)
  755.       # OSF1 and SCO ODT 3.0 have their own names for install.
  756.       for ac_prog in ginstall installbsd scoinst install; do
  757.         if test -f $ac_dir/$ac_prog; then
  758.       if test $ac_prog = install &&
  759.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  760.         # AIX install.  It has an incompatible calling convention.
  761.         # OSF/1 installbsd also uses dspmsg, but is usable.
  762.         :
  763.       else
  764.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  765.         break 2
  766.       fi
  767.     fi
  768.       done
  769.       ;;
  770.     esac
  771.   done
  772.   IFS="$ac_save_ifs"
  773.  
  774. fi
  775.   if test "${ac_cv_path_install+set}" = set; then
  776.     INSTALL="$ac_cv_path_install"
  777.   else
  778.     # As a last resort, use the slow shell script.  We don't cache a
  779.     # path for INSTALL within a source directory, because that will
  780.     # break other packages using the cache if that directory is
  781.     # removed, or if the path is relative.
  782.     INSTALL="$ac_install_sh"
  783.   fi
  784. fi
  785. echo "$ac_t""$INSTALL" 1>&6
  786.  
  787. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  788. # It thinks the first close brace ends the variable substitution.
  789. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  790.  
  791. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  792.  
  793. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  794. set dummy ${MAKE-make}; ac_make=$2
  795. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  796.   echo $ac_n "(cached) $ac_c" 1>&6
  797. else
  798.   cat > conftestmake <<\EOF
  799. all:
  800.     @echo 'ac_maketemp="${MAKE}"'
  801. EOF
  802. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  803. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  804. if test -n "$ac_maketemp"; then
  805.   eval ac_cv_prog_make_${ac_make}_set=yes
  806. else
  807.   eval ac_cv_prog_make_${ac_make}_set=no
  808. fi
  809. rm -f conftestmake
  810. fi
  811. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  812.   echo "$ac_t""yes" 1>&6
  813.   SET_MAKE=
  814. else
  815.   echo "$ac_t""no" 1>&6
  816.   SET_MAKE="MAKE=${MAKE-make}"
  817. fi
  818.  
  819. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  820. # On Suns, sometimes $CPP names a directory.
  821. if test -n "$CPP" && test -d "$CPP"; then
  822.   CPP=
  823. fi
  824. if test -z "$CPP"; then
  825. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  826.   echo $ac_n "(cached) $ac_c" 1>&6
  827. else
  828.     # This must be in double quotes, not single quotes, because CPP may get
  829.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  830.   CPP="${CC-cc} -E"
  831.   # On the NeXT, cc -E runs the code through the compiler's parser,
  832.   # not just through cpp.
  833.   cat > conftest.$ac_ext <<EOF
  834. #line 835 "configure"
  835. #include "confdefs.h"
  836. #include <assert.h>
  837. Syntax Error
  838. EOF
  839. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  840. { (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  841. ac_err=`grep -v '^ *+' conftest.out`
  842. if test -z "$ac_err"; then
  843.   :
  844. else
  845.   echo "$ac_err" >&5
  846.   rm -rf conftest*
  847.   CPP="${CC-cc} -E -traditional-cpp"
  848.   cat > conftest.$ac_ext <<EOF
  849. #line 850 "configure"
  850. #include "confdefs.h"
  851. #include <assert.h>
  852. Syntax Error
  853. EOF
  854. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  855. { (eval echo configure:856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  856. ac_err=`grep -v '^ *+' conftest.out`
  857. if test -z "$ac_err"; then
  858.   :
  859. else
  860.   echo "$ac_err" >&5
  861.   rm -rf conftest*
  862.   CPP=/lib/cpp
  863. fi
  864. rm -f conftest*
  865. fi
  866. rm -f conftest*
  867.   ac_cv_prog_CPP="$CPP"
  868. fi
  869.   CPP="$ac_cv_prog_CPP"
  870. else
  871.   ac_cv_prog_CPP="$CPP"
  872. fi
  873. echo "$ac_t""$CPP" 1>&6
  874.  
  875. if test $ac_cv_prog_gcc = yes; then
  876.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  877. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  878.   echo $ac_n "(cached) $ac_c" 1>&6
  879. else
  880.     ac_pattern="Autoconf.*'x'"
  881.   cat > conftest.$ac_ext <<EOF
  882. #line 883 "configure"
  883. #include "confdefs.h"
  884. #include <sgtty.h>
  885. Autoconf TIOCGETP
  886. EOF
  887. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  888.   egrep "$ac_pattern" >/dev/null 2>&1; then
  889.   rm -rf conftest*
  890.   ac_cv_prog_gcc_traditional=yes
  891. else
  892.   rm -rf conftest*
  893.   ac_cv_prog_gcc_traditional=no
  894. fi
  895. rm -f conftest*
  896.  
  897.  
  898.   if test $ac_cv_prog_gcc_traditional = no; then
  899.     cat > conftest.$ac_ext <<EOF
  900. #line 901 "configure"
  901. #include "confdefs.h"
  902. #include <termio.h>
  903. Autoconf TCGETA
  904. EOF
  905. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  906.   egrep "$ac_pattern" >/dev/null 2>&1; then
  907.   rm -rf conftest*
  908.   ac_cv_prog_gcc_traditional=yes
  909. fi
  910. rm -f conftest*
  911.  
  912.   fi
  913. fi
  914.  
  915. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  916.   if test $ac_cv_prog_gcc_traditional = yes; then
  917.     CC="$CC -traditional"
  918.   fi
  919. fi
  920.  
  921. # Extract the first word of "ranlib", so it can be a program name with args.
  922. set dummy ranlib; ac_word=$2
  923. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  924. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  925.   echo $ac_n "(cached) $ac_c" 1>&6
  926. else
  927.   if test -n "$RANLIB"; then
  928.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  929. else
  930.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  931.   for ac_dir in $PATH; do
  932.     test -z "$ac_dir" && ac_dir=.
  933.     if test -f $ac_dir/$ac_word; then
  934.       ac_cv_prog_RANLIB="ranlib"
  935.       break
  936.     fi
  937.   done
  938.   IFS="$ac_save_ifs"
  939.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  940. fi
  941. fi
  942. RANLIB="$ac_cv_prog_RANLIB"
  943. if test -n "$RANLIB"; then
  944.   echo "$ac_t""$RANLIB" 1>&6
  945. else
  946.   echo "$ac_t""no" 1>&6
  947. fi
  948.  
  949. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  950. cat > conftest.$ac_ext <<EOF
  951. #line 952 "configure"
  952. #include "confdefs.h"
  953. #ifdef _AIX
  954.   yes
  955. #endif
  956.  
  957. EOF
  958. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  959.   egrep "yes" >/dev/null 2>&1; then
  960.   rm -rf conftest*
  961.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  962. #define _ALL_SOURCE 1
  963. EOF
  964.  
  965. else
  966.   rm -rf conftest*
  967.   echo "$ac_t""no" 1>&6
  968. fi
  969. rm -f conftest*
  970.  
  971.  
  972. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  973. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  974. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  975.   echo $ac_n "(cached) $ac_c" 1>&6
  976. else
  977.   cat > conftest.$ac_ext <<EOF
  978. #line 979 "configure"
  979. #include "confdefs.h"
  980. #include <minix/config.h>
  981. EOF
  982. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  983. { (eval echo configure:984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  984. ac_err=`grep -v '^ *+' conftest.out`
  985. if test -z "$ac_err"; then
  986.   rm -rf conftest*
  987.   eval "ac_cv_header_$ac_safe=yes"
  988. else
  989.   echo "$ac_err" >&5
  990.   rm -rf conftest*
  991.   eval "ac_cv_header_$ac_safe=no"
  992. fi
  993. rm -f conftest*
  994. fi
  995. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  996.   echo "$ac_t""yes" 1>&6
  997.   MINIX=yes
  998. else
  999.   echo "$ac_t""no" 1>&6
  1000. MINIX=
  1001. fi
  1002.  
  1003. if test "$MINIX" = yes; then
  1004.   cat >> confdefs.h <<\EOF
  1005. #define _POSIX_SOURCE 1
  1006. EOF
  1007.  
  1008.   cat >> confdefs.h <<\EOF
  1009. #define _POSIX_1_SOURCE 2
  1010. EOF
  1011.  
  1012.   cat >> confdefs.h <<\EOF
  1013. #define _MINIX 1
  1014. EOF
  1015.  
  1016. fi
  1017.  
  1018. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1019. if test -d /etc/conf/kconfig.d &&
  1020.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1021. then
  1022.   echo "$ac_t""yes" 1>&6
  1023.   ISC=yes # If later tests want to check for ISC.
  1024.   cat >> confdefs.h <<\EOF
  1025. #define _POSIX_SOURCE 1
  1026. EOF
  1027.  
  1028.   if test "$GCC" = yes; then
  1029.     CC="$CC -posix"
  1030.   else
  1031.     CC="$CC -Xp"
  1032.   fi
  1033. else
  1034.   echo "$ac_t""no" 1>&6
  1035.   ISC=
  1036. fi
  1037.  
  1038.  
  1039. echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
  1040. # Check whether --with-regex or --without-regex was given.
  1041. if test "${with_regex+set}" = set; then
  1042.   withval="$with_regex"
  1043.   if test "$withval" = yes; then
  1044.   ac_with_regex=1
  1045.   echo "$ac_t""regex" 1>&6
  1046.   cat >> confdefs.h <<\EOF
  1047. #define WITH_REGEX 1
  1048. EOF
  1049.  
  1050.   REGEXOBJ=regex.o
  1051. fi
  1052. fi
  1053.  
  1054. if test -z "$ac_with_regex"; then
  1055.   echo "$ac_t""rx" 1>&6
  1056.   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
  1057. if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
  1058.   echo $ac_n "(cached) $ac_c" 1>&6
  1059. else
  1060.   cat > conftest.$ac_ext <<EOF
  1061. #line 1062 "configure"
  1062. #include "confdefs.h"
  1063. /* System header to define __stub macros and hopefully few prototypes,
  1064.     which can conflict with char re_rx_search(); below.  */
  1065. #include <assert.h>
  1066. /* Override any gcc2 internal prototype to avoid an error.  */
  1067. /* We use char because int might match the return type of a gcc2
  1068.     builtin and then its argument prototype would still apply.  */
  1069. char re_rx_search();
  1070.  
  1071. int main() { return 0; }
  1072. int t() {
  1073.  
  1074. /* The GNU C library defines this for functions which it implements
  1075.     to always fail with ENOSYS.  Some functions are actually named
  1076.     something starting with __ and the normal name is an alias.  */
  1077. #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
  1078. choke me
  1079. #else
  1080. re_rx_search();
  1081. #endif
  1082.  
  1083. ; return 0; }
  1084. EOF
  1085. if { (eval echo configure:1086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1086.   rm -rf conftest*
  1087.   eval "ac_cv_func_re_rx_search=yes"
  1088. else
  1089.   rm -rf conftest*
  1090.   eval "ac_cv_func_re_rx_search=no"
  1091. fi
  1092. rm -f conftest*
  1093.  
  1094. fi
  1095. if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
  1096.   echo "$ac_t""yes" 1>&6
  1097.   :
  1098. else
  1099.   echo "$ac_t""no" 1>&6
  1100. REGEXOBJ=rx.o
  1101. fi
  1102.  
  1103. fi
  1104.  
  1105.  
  1106. for ac_hdr in limits.h string.h memory.h fcntl.h float.h unistd.h values.h
  1107. do
  1108. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1109. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1110. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1111.   echo $ac_n "(cached) $ac_c" 1>&6
  1112. else
  1113.   cat > conftest.$ac_ext <<EOF
  1114. #line 1115 "configure"
  1115. #include "confdefs.h"
  1116. #include <$ac_hdr>
  1117. EOF
  1118. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1119. { (eval echo configure:1120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1120. ac_err=`grep -v '^ *+' conftest.out`
  1121. if test -z "$ac_err"; then
  1122.   rm -rf conftest*
  1123.   eval "ac_cv_header_$ac_safe=yes"
  1124. else
  1125.   echo "$ac_err" >&5
  1126.   rm -rf conftest*
  1127.   eval "ac_cv_header_$ac_safe=no"
  1128. fi
  1129. rm -f conftest*
  1130. fi
  1131. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1132.   echo "$ac_t""yes" 1>&6
  1133.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1134.   cat >> confdefs.h <<EOF
  1135. #define $ac_tr_hdr 1
  1136. EOF
  1137.  
  1138. else
  1139.   echo "$ac_t""no" 1>&6
  1140. fi
  1141. done
  1142.  
  1143. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1144. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1145.   echo $ac_n "(cached) $ac_c" 1>&6
  1146. else
  1147.   cat > conftest.$ac_ext <<EOF
  1148. #line 1149 "configure"
  1149. #include "confdefs.h"
  1150. #include <sys/types.h>
  1151. #include <sys/stat.h>
  1152.  
  1153. #if defined(S_ISBLK) && defined(S_IFDIR)
  1154. # if S_ISBLK (S_IFDIR)
  1155. You lose.
  1156. # endif
  1157. #endif
  1158.  
  1159. #if defined(S_ISBLK) && defined(S_IFCHR)
  1160. # if S_ISBLK (S_IFCHR)
  1161. You lose.
  1162. # endif
  1163. #endif
  1164.  
  1165. #if defined(S_ISLNK) && defined(S_IFREG)
  1166. # if S_ISLNK (S_IFREG)
  1167. You lose.
  1168. # endif
  1169. #endif
  1170.  
  1171. #if defined(S_ISSOCK) && defined(S_IFREG)
  1172. # if S_ISSOCK (S_IFREG)
  1173. You lose.
  1174. # endif
  1175. #endif
  1176.  
  1177. EOF
  1178. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1179.   egrep "You lose" >/dev/null 2>&1; then
  1180.   rm -rf conftest*
  1181.   ac_cv_header_stat_broken=yes
  1182. else
  1183.   rm -rf conftest*
  1184.   ac_cv_header_stat_broken=no
  1185. fi
  1186. rm -f conftest*
  1187.  
  1188. fi
  1189.  
  1190. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1191. if test $ac_cv_header_stat_broken = yes; then
  1192.   cat >> confdefs.h <<\EOF
  1193. #define STAT_MACROS_BROKEN 1
  1194. EOF
  1195.  
  1196. fi
  1197.  
  1198. # If we cannot run a trivial program, we must be cross compiling.
  1199. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1200. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1201.   echo $ac_n "(cached) $ac_c" 1>&6
  1202. else
  1203.   if test "$cross_compiling" = yes; then
  1204.   ac_cv_c_cross=yes
  1205. else
  1206. cat > conftest.$ac_ext <<EOF
  1207. #line 1208 "configure"
  1208. #include "confdefs.h"
  1209. main(){return(0);}
  1210. EOF
  1211. { (eval echo configure:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1212. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1213.   ac_cv_c_cross=no
  1214. else
  1215.   ac_cv_c_cross=yes
  1216. fi
  1217. fi
  1218. rm -fr conftest*
  1219. fi
  1220.  
  1221. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1222. cross_compiling=$ac_cv_c_cross
  1223.  
  1224. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1225. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1226.   echo $ac_n "(cached) $ac_c" 1>&6
  1227. else
  1228.   cat > conftest.$ac_ext <<EOF
  1229. #line 1230 "configure"
  1230. #include "confdefs.h"
  1231. #include <stdlib.h>
  1232. #include <stdarg.h>
  1233. #include <string.h>
  1234. #include <float.h>
  1235. EOF
  1236. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1237. { (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1238. ac_err=`grep -v '^ *+' conftest.out`
  1239. if test -z "$ac_err"; then
  1240.   rm -rf conftest*
  1241.   ac_cv_header_stdc=yes
  1242. else
  1243.   echo "$ac_err" >&5
  1244.   rm -rf conftest*
  1245.   ac_cv_header_stdc=no
  1246. fi
  1247. rm -f conftest*
  1248.  
  1249. if test $ac_cv_header_stdc = yes; then
  1250.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1251. cat > conftest.$ac_ext <<EOF
  1252. #line 1253 "configure"
  1253. #include "confdefs.h"
  1254. #include <string.h>
  1255. EOF
  1256. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1257.   egrep "memchr" >/dev/null 2>&1; then
  1258.   :
  1259. else
  1260.   rm -rf conftest*
  1261.   ac_cv_header_stdc=no
  1262. fi
  1263. rm -f conftest*
  1264.  
  1265. fi
  1266.  
  1267. if test $ac_cv_header_stdc = yes; then
  1268.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1269. cat > conftest.$ac_ext <<EOF
  1270. #line 1271 "configure"
  1271. #include "confdefs.h"
  1272. #include <stdlib.h>
  1273. EOF
  1274. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1275.   egrep "free" >/dev/null 2>&1; then
  1276.   :
  1277. else
  1278.   rm -rf conftest*
  1279.   ac_cv_header_stdc=no
  1280. fi
  1281. rm -f conftest*
  1282.  
  1283. fi
  1284.  
  1285. if test $ac_cv_header_stdc = yes; then
  1286.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1287. if test "$cross_compiling" = yes; then
  1288.   :
  1289. else
  1290. cat > conftest.$ac_ext <<EOF
  1291. #line 1292 "configure"
  1292. #include "confdefs.h"
  1293. #include <ctype.h>
  1294. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1295. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1296. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1297. int main () { int i; for (i = 0; i < 256; i++)
  1298. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1299. exit (0); }
  1300.  
  1301. EOF
  1302. { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1303. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1304.   :
  1305. else
  1306.   ac_cv_header_stdc=no
  1307. fi
  1308. fi
  1309. rm -fr conftest*
  1310. fi
  1311. fi
  1312.  
  1313. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1314. if test $ac_cv_header_stdc = yes; then
  1315.   cat >> confdefs.h <<\EOF
  1316. #define STDC_HEADERS 1
  1317. EOF
  1318.  
  1319. fi
  1320.  
  1321.  
  1322. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1323. if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  1324.   echo $ac_n "(cached) $ac_c" 1>&6
  1325. else
  1326.   ac_cv_prog_cc_stdc=no
  1327. ac_save_CFLAGS="$CFLAGS"
  1328. # Don't try gcc -ansi; that turns off useful extensions and
  1329. # breaks some systems' header files.
  1330. # AIX            -qlanglvl=ansi
  1331. # Ultrix and OSF/1    -std1
  1332. # HP-UX            -Aa -D_HPUX_SOURCE
  1333. # SVR4            -Xc -D__EXTENSIONS__
  1334. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1335. do
  1336.   CFLAGS="$ac_save_CFLAGS $ac_arg"
  1337.   cat > conftest.$ac_ext <<EOF
  1338. #line 1339 "configure"
  1339. #include "confdefs.h"
  1340. #if !defined(__STDC__) || __STDC__ != 1
  1341. choke me
  1342. #endif
  1343.  
  1344. int main() { return 0; }
  1345. int t() {
  1346. /* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
  1347. #include <sys/types.h>
  1348. #include <sys/stat.h>
  1349. int test (int i, double x);
  1350. struct s1 {int (*f) (int a);};
  1351. struct s2 {int (*f) (double a);};
  1352. ; return 0; }
  1353. EOF
  1354. if { (eval echo configure:1355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1355.   rm -rf conftest*
  1356.   ac_cv_prog_cc_stdc="$ac_arg"; break
  1357. fi
  1358. rm -f conftest*
  1359.  
  1360. done
  1361. CFLAGS="$ac_save_CFLAGS"
  1362.  
  1363. fi
  1364.  
  1365. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  1366. case "x$ac_cv_prog_cc_stdc" in
  1367.   x|xno) ;;
  1368.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  1369. esac
  1370.  
  1371.  
  1372. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  1373. if test "$ac_cv_prog_cc_stdc" != no; then
  1374.   echo "$ac_t""yes" 1>&6
  1375.   cat >> confdefs.h <<\EOF
  1376. #define PROTOTYPES 1
  1377. EOF
  1378.  
  1379.   U= ANSI2KNR=
  1380. else
  1381.   echo "$ac_t""no" 1>&6
  1382.   U=_ ANSI2KNR=./ansi2knr
  1383. fi
  1384.  
  1385.  
  1386. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1387. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1388.   echo $ac_n "(cached) $ac_c" 1>&6
  1389. else
  1390.   ac_cv_c_bigendian=unknown
  1391. # See if sys/param.h defines the BYTE_ORDER macro.
  1392. cat > conftest.$ac_ext <<EOF
  1393. #line 1394 "configure"
  1394. #include "confdefs.h"
  1395. #include <sys/types.h>
  1396. #include <sys/param.h>
  1397. int main() { return 0; }
  1398. int t() {
  1399.  
  1400. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1401.  bogus endian macros
  1402. #endif
  1403. ; return 0; }
  1404. EOF
  1405. if { (eval echo configure:1406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1406.   rm -rf conftest*
  1407.   # It does; now see whether it defined to BIG_ENDIAN or not.
  1408. cat > conftest.$ac_ext <<EOF
  1409. #line 1410 "configure"
  1410. #include "confdefs.h"
  1411. #include <sys/types.h>
  1412. #include <sys/param.h>
  1413. int main() { return 0; }
  1414. int t() {
  1415.  
  1416. #if BYTE_ORDER != BIG_ENDIAN
  1417.  not big endian
  1418. #endif
  1419. ; return 0; }
  1420. EOF
  1421. if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1422.   rm -rf conftest*
  1423.   ac_cv_c_bigendian=yes
  1424. else
  1425.   rm -rf conftest*
  1426.   ac_cv_c_bigendian=no
  1427. fi
  1428. rm -f conftest*
  1429.  
  1430. fi
  1431. rm -f conftest*
  1432.  
  1433. if test $ac_cv_c_bigendian = unknown; then
  1434. if test "$cross_compiling" = yes; then
  1435.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1436. else
  1437. cat > conftest.$ac_ext <<EOF
  1438. #line 1439 "configure"
  1439. #include "confdefs.h"
  1440. main () {
  1441.   /* Are we little or big endian?  From Harbison&Steele.  */
  1442.   union
  1443.   {
  1444.     long l;
  1445.     char c[sizeof (long)];
  1446.   } u;
  1447.   u.l = 1;
  1448.   exit (u.c[sizeof (long) - 1] == 1);
  1449. }
  1450. EOF
  1451. { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1452. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1453.   ac_cv_c_bigendian=no
  1454. else
  1455.   ac_cv_c_bigendian=yes
  1456. fi
  1457. fi
  1458. rm -fr conftest*
  1459. fi
  1460. fi
  1461.  
  1462. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1463. if test $ac_cv_c_bigendian = yes; then
  1464.   cat >> confdefs.h <<\EOF
  1465. #define WORDS_BIGENDIAN 1
  1466. EOF
  1467.  
  1468. fi
  1469.  
  1470. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1471. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1472.   echo $ac_n "(cached) $ac_c" 1>&6
  1473. else
  1474.   cat > conftest.$ac_ext <<EOF
  1475. #line 1476 "configure"
  1476. #include "confdefs.h"
  1477.  
  1478. int main() { return 0; }
  1479. int t() {
  1480.  
  1481. /* Ultrix mips cc rejects this.  */
  1482. typedef int charset[2]; const charset x;
  1483. /* SunOS 4.1.1 cc rejects this.  */
  1484. char const *const *ccp;
  1485. char **p;
  1486. /* NEC SVR4.0.2 mips cc rejects this.  */
  1487. struct point {int x, y;};
  1488. static struct point const zero = {0,0};
  1489. /* AIX XL C 1.02.0.0 rejects this.
  1490.    It does not let you subtract one const X* pointer from another in an arm
  1491.    of an if-expression whose if-part is not a constant expression */
  1492. const char *g = "string";
  1493. ccp = &g + (g ? g-g : 0);
  1494. /* HPUX 7.0 cc rejects these. */
  1495. ++ccp;
  1496. p = (char**) ccp;
  1497. ccp = (char const *const *) p;
  1498. { /* SCO 3.2v4 cc rejects this.  */
  1499.   char *t;
  1500.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1501.  
  1502.   *t++ = 0;
  1503. }
  1504. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1505.   int x[] = {25, 17};
  1506.   const int *foo = &x[0];
  1507.   ++foo;
  1508. }
  1509. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1510.   typedef const int *iptr;
  1511.   iptr p = 0;
  1512.   ++p;
  1513. }
  1514. { /* AIX XL C 1.02.0.0 rejects this saying
  1515.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1516.   struct s { int j; const int *ap[3]; };
  1517.   struct s *b; b->j = 5;
  1518. }
  1519. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1520.   const int foo = 10;
  1521. }
  1522.  
  1523. ; return 0; }
  1524. EOF
  1525. if { (eval echo configure:1526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1526.   rm -rf conftest*
  1527.   ac_cv_c_const=yes
  1528. else
  1529.   rm -rf conftest*
  1530.   ac_cv_c_const=no
  1531. fi
  1532. rm -f conftest*
  1533.  
  1534. fi
  1535.  
  1536. echo "$ac_t""$ac_cv_c_const" 1>&6
  1537. if test $ac_cv_c_const = no; then
  1538.   cat >> confdefs.h <<\EOF
  1539. #define const 
  1540. EOF
  1541.  
  1542. fi
  1543.  
  1544. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1545. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1546.   echo $ac_n "(cached) $ac_c" 1>&6
  1547. else
  1548.   ac_cv_c_inline=no
  1549. for ac_kw in inline __inline__ __inline; do
  1550.   cat > conftest.$ac_ext <<EOF
  1551. #line 1552 "configure"
  1552. #include "confdefs.h"
  1553.  
  1554. int main() { return 0; }
  1555. int t() {
  1556. } $ac_kw foo() {
  1557. ; return 0; }
  1558. EOF
  1559. if { (eval echo configure:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1560.   rm -rf conftest*
  1561.   ac_cv_c_inline=$ac_kw; break
  1562. fi
  1563. rm -f conftest*
  1564.  
  1565. done
  1566.  
  1567. fi
  1568.  
  1569. echo "$ac_t""$ac_cv_c_inline" 1>&6
  1570. case "$ac_cv_c_inline" in
  1571.   inline | yes) ;;
  1572.   no) cat >> confdefs.h <<\EOF
  1573. #define inline 
  1574. EOF
  1575.  ;;
  1576.   *)  cat >> confdefs.h <<EOF
  1577. #define inline $ac_cv_c_inline
  1578. EOF
  1579.  ;;
  1580. esac
  1581.  
  1582. echo $ac_n "checking for long double""... $ac_c" 1>&6
  1583. if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
  1584.   echo $ac_n "(cached) $ac_c" 1>&6
  1585. else
  1586.   if test "$GCC" = yes; then
  1587.   ac_cv_c_long_double=yes
  1588. else
  1589. if test "$cross_compiling" = yes; then
  1590.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1591. else
  1592. cat > conftest.$ac_ext <<EOF
  1593. #line 1594 "configure"
  1594. #include "confdefs.h"
  1595. int main() {
  1596. /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
  1597. long double foo = 0.0;
  1598. /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
  1599. exit(sizeof(long double) < sizeof(double)); }
  1600. EOF
  1601. { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1602. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1603.   ac_cv_c_long_double=yes
  1604. else
  1605.   ac_cv_c_long_double=no
  1606. fi
  1607. fi
  1608. rm -fr conftest*
  1609. fi
  1610. fi
  1611.  
  1612. echo "$ac_t""$ac_cv_c_long_double" 1>&6
  1613. if test $ac_cv_c_long_double = yes; then
  1614.   cat >> confdefs.h <<\EOF
  1615. #define HAVE_LONG_DOUBLE 1
  1616. EOF
  1617.  
  1618. fi
  1619.  
  1620.  
  1621. ac_header_dirent=no
  1622. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1623. do
  1624. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1625. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1626. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1627.   echo $ac_n "(cached) $ac_c" 1>&6
  1628. else
  1629.   cat > conftest.$ac_ext <<EOF
  1630. #line 1631 "configure"
  1631. #include "confdefs.h"
  1632. #include <sys/types.h>
  1633. #include <$ac_hdr>
  1634. int main() { return 0; }
  1635. int t() {
  1636. DIR *dirp = 0;
  1637. ; return 0; }
  1638. EOF
  1639. if { (eval echo configure:1640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1640.   rm -rf conftest*
  1641.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1642. else
  1643.   rm -rf conftest*
  1644.   eval "ac_cv_header_dirent_$ac_safe=no"
  1645. fi
  1646. rm -f conftest*
  1647.  
  1648. fi
  1649. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1650.   echo "$ac_t""yes" 1>&6
  1651.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1652.   cat >> confdefs.h <<EOF
  1653. #define $ac_tr_hdr 1
  1654. EOF
  1655.  ac_header_dirent=$ac_hdr; break
  1656. else
  1657.   echo "$ac_t""no" 1>&6
  1658. fi
  1659. done
  1660. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1661. if test $ac_header_dirent = dirent.h; then
  1662. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1663. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1664. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1665.   echo $ac_n "(cached) $ac_c" 1>&6
  1666. else
  1667.   ac_save_LIBS="$LIBS"
  1668. LIBS="-ldir  $LIBS"
  1669. cat > conftest.$ac_ext <<EOF
  1670. #line 1671 "configure"
  1671. #include "confdefs.h"
  1672. /* Override any gcc2 internal prototype to avoid an error.  */
  1673. /* We use char because int might match the return type of a gcc2
  1674.     builtin and then its argument prototype would still apply.  */
  1675. char opendir();
  1676.  
  1677. int main() { return 0; }
  1678. int t() {
  1679. opendir()
  1680. ; return 0; }
  1681. EOF
  1682. if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1683.   rm -rf conftest*
  1684.   eval "ac_cv_lib_$ac_lib_var=yes"
  1685. else
  1686.   rm -rf conftest*
  1687.   eval "ac_cv_lib_$ac_lib_var=no"
  1688. fi
  1689. rm -f conftest*
  1690. LIBS="$ac_save_LIBS"
  1691.  
  1692. fi
  1693. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1694.   echo "$ac_t""yes" 1>&6
  1695.   LIBS="$LIBS -ldir"
  1696. else
  1697.   echo "$ac_t""no" 1>&6
  1698. fi
  1699.  
  1700. else
  1701. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1702. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1703. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1704.   echo $ac_n "(cached) $ac_c" 1>&6
  1705. else
  1706.   ac_save_LIBS="$LIBS"
  1707. LIBS="-lx  $LIBS"
  1708. cat > conftest.$ac_ext <<EOF
  1709. #line 1710 "configure"
  1710. #include "confdefs.h"
  1711. /* Override any gcc2 internal prototype to avoid an error.  */
  1712. /* We use char because int might match the return type of a gcc2
  1713.     builtin and then its argument prototype would still apply.  */
  1714. char opendir();
  1715.  
  1716. int main() { return 0; }
  1717. int t() {
  1718. opendir()
  1719. ; return 0; }
  1720. EOF
  1721. if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1722.   rm -rf conftest*
  1723.   eval "ac_cv_lib_$ac_lib_var=yes"
  1724. else
  1725.   rm -rf conftest*
  1726.   eval "ac_cv_lib_$ac_lib_var=no"
  1727. fi
  1728. rm -f conftest*
  1729. LIBS="$ac_save_LIBS"
  1730.  
  1731. fi
  1732. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1733.   echo "$ac_t""yes" 1>&6
  1734.   LIBS="$LIBS -lx"
  1735. else
  1736.   echo "$ac_t""no" 1>&6
  1737. fi
  1738.  
  1739. fi
  1740.  
  1741. echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
  1742. if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  1743.   echo $ac_n "(cached) $ac_c" 1>&6
  1744. else
  1745.   cat > conftest.$ac_ext <<EOF
  1746. #line 1747 "configure"
  1747. #include "confdefs.h"
  1748. #include <sys/types.h>
  1749. #include <sys/stat.h>
  1750. int main() { return 0; }
  1751. int t() {
  1752. struct stat s; s.st_blksize;
  1753. ; return 0; }
  1754. EOF
  1755. if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1756.   rm -rf conftest*
  1757.   ac_cv_struct_st_blksize=yes
  1758. else
  1759.   rm -rf conftest*
  1760.   ac_cv_struct_st_blksize=no
  1761. fi
  1762. rm -f conftest*
  1763.  
  1764. fi
  1765.  
  1766. echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
  1767. if test $ac_cv_struct_st_blksize = yes; then
  1768.   cat >> confdefs.h <<\EOF
  1769. #define HAVE_ST_BLKSIZE 1
  1770. EOF
  1771.  
  1772. fi
  1773.  
  1774. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1775. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1776.   echo $ac_n "(cached) $ac_c" 1>&6
  1777. else
  1778.   cat > conftest.$ac_ext <<EOF
  1779. #line 1780 "configure"
  1780. #include "confdefs.h"
  1781. #include <sys/types.h>
  1782. #if STDC_HEADERS
  1783. #include <stdlib.h>
  1784. #endif
  1785. EOF
  1786. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1787.   egrep "off_t" >/dev/null 2>&1; then
  1788.   rm -rf conftest*
  1789.   ac_cv_type_off_t=yes
  1790. else
  1791.   rm -rf conftest*
  1792.   ac_cv_type_off_t=no
  1793. fi
  1794. rm -f conftest*
  1795.  
  1796. fi
  1797. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1798. if test $ac_cv_type_off_t = no; then
  1799.   cat >> confdefs.h <<\EOF
  1800. #define off_t long
  1801. EOF
  1802.  
  1803. fi
  1804.  
  1805. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1806. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1807.   echo $ac_n "(cached) $ac_c" 1>&6
  1808. else
  1809.   cat > conftest.$ac_ext <<EOF
  1810. #line 1811 "configure"
  1811. #include "confdefs.h"
  1812. #include <sys/types.h>
  1813. #include <signal.h>
  1814. #ifdef signal
  1815. #undef signal
  1816. #endif
  1817. #ifdef __cplusplus
  1818. extern "C" void (*signal (int, void (*)(int)))(int);
  1819. #else
  1820. void (*signal ()) ();
  1821. #endif
  1822.  
  1823. int main() { return 0; }
  1824. int t() {
  1825. int i;
  1826. ; return 0; }
  1827. EOF
  1828. if { (eval echo configure:1829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1829.   rm -rf conftest*
  1830.   ac_cv_type_signal=void
  1831. else
  1832.   rm -rf conftest*
  1833.   ac_cv_type_signal=int
  1834. fi
  1835. rm -f conftest*
  1836.  
  1837. fi
  1838.  
  1839. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1840. cat >> confdefs.h <<EOF
  1841. #define RETSIGTYPE $ac_cv_type_signal
  1842. EOF
  1843.  
  1844.  
  1845. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1846. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1847.   echo $ac_n "(cached) $ac_c" 1>&6
  1848. else
  1849.   cat > conftest.$ac_ext <<EOF
  1850. #line 1851 "configure"
  1851. #include "confdefs.h"
  1852. #include <sys/types.h>
  1853. #if STDC_HEADERS
  1854. #include <stdlib.h>
  1855. #endif
  1856. EOF
  1857. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1858.   egrep "size_t" >/dev/null 2>&1; then
  1859.   rm -rf conftest*
  1860.   ac_cv_type_size_t=yes
  1861. else
  1862.   rm -rf conftest*
  1863.   ac_cv_type_size_t=no
  1864. fi
  1865. rm -f conftest*
  1866.  
  1867. fi
  1868. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1869. if test $ac_cv_type_size_t = no; then
  1870.   cat >> confdefs.h <<\EOF
  1871. #define size_t unsigned
  1872. EOF
  1873.  
  1874. fi
  1875.  
  1876.  
  1877. for ac_func in getdelim strerror isascii strchr strrchr
  1878. do
  1879. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1880. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1881.   echo $ac_n "(cached) $ac_c" 1>&6
  1882. else
  1883.   cat > conftest.$ac_ext <<EOF
  1884. #line 1885 "configure"
  1885. #include "confdefs.h"
  1886. /* System header to define __stub macros and hopefully few prototypes,
  1887.     which can conflict with char $ac_func(); below.  */
  1888. #include <assert.h>
  1889. /* Override any gcc2 internal prototype to avoid an error.  */
  1890. /* We use char because int might match the return type of a gcc2
  1891.     builtin and then its argument prototype would still apply.  */
  1892. char $ac_func();
  1893.  
  1894. int main() { return 0; }
  1895. int t() {
  1896.  
  1897. /* The GNU C library defines this for functions which it implements
  1898.     to always fail with ENOSYS.  Some functions are actually named
  1899.     something starting with __ and the normal name is an alias.  */
  1900. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1901. choke me
  1902. #else
  1903. $ac_func();
  1904. #endif
  1905.  
  1906. ; return 0; }
  1907. EOF
  1908. if { (eval echo configure:1909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1909.   rm -rf conftest*
  1910.   eval "ac_cv_func_$ac_func=yes"
  1911. else
  1912.   rm -rf conftest*
  1913.   eval "ac_cv_func_$ac_func=no"
  1914. fi
  1915. rm -f conftest*
  1916.  
  1917. fi
  1918. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1919.   echo "$ac_t""yes" 1>&6
  1920.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1921.   cat >> confdefs.h <<EOF
  1922. #define $ac_tr_func 1
  1923. EOF
  1924.  
  1925. else
  1926.   echo "$ac_t""no" 1>&6
  1927. fi
  1928. done
  1929.  
  1930. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1931. # for constant arguments.  Useless!
  1932. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1933. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1934.   echo $ac_n "(cached) $ac_c" 1>&6
  1935. else
  1936.   cat > conftest.$ac_ext <<EOF
  1937. #line 1938 "configure"
  1938. #include "confdefs.h"
  1939. #include <alloca.h>
  1940. int main() { return 0; }
  1941. int t() {
  1942. char *p = alloca(2 * sizeof(int));
  1943. ; return 0; }
  1944. EOF
  1945. if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1946.   rm -rf conftest*
  1947.   ac_cv_header_alloca_h=yes
  1948. else
  1949.   rm -rf conftest*
  1950.   ac_cv_header_alloca_h=no
  1951. fi
  1952. rm -f conftest*
  1953.  
  1954. fi
  1955.  
  1956. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1957. if test $ac_cv_header_alloca_h = yes; then
  1958.   cat >> confdefs.h <<\EOF
  1959. #define HAVE_ALLOCA_H 1
  1960. EOF
  1961.  
  1962. fi
  1963.  
  1964. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1965. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1966.   echo $ac_n "(cached) $ac_c" 1>&6
  1967. else
  1968.   cat > conftest.$ac_ext <<EOF
  1969. #line 1970 "configure"
  1970. #include "confdefs.h"
  1971.  
  1972. #ifdef __GNUC__
  1973. # define alloca __builtin_alloca
  1974. #else
  1975. # if HAVE_ALLOCA_H
  1976. #  include <alloca.h>
  1977. # else
  1978. #  ifdef _AIX
  1979.  #pragma alloca
  1980. #  else
  1981. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1982. char *alloca ();
  1983. #   endif
  1984. #  endif
  1985. # endif
  1986. #endif
  1987.  
  1988. int main() { return 0; }
  1989. int t() {
  1990. char *p = (char *) alloca(1);
  1991. ; return 0; }
  1992. EOF
  1993. if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1994.   rm -rf conftest*
  1995.   ac_cv_func_alloca=yes
  1996. else
  1997.   rm -rf conftest*
  1998.   ac_cv_func_alloca=no
  1999. fi
  2000. rm -f conftest*
  2001.  
  2002. fi
  2003.  
  2004. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2005. if test $ac_cv_func_alloca = yes; then
  2006.   cat >> confdefs.h <<\EOF
  2007. #define HAVE_ALLOCA 1
  2008. EOF
  2009.  
  2010. fi
  2011.  
  2012. if test $ac_cv_func_alloca = no; then
  2013.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2014.   # that cause trouble.  Some versions do not even contain alloca or
  2015.   # contain a buggy version.  If you still want to use their alloca,
  2016.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2017.   ALLOCA=alloca.o
  2018.   cat >> confdefs.h <<\EOF
  2019. #define C_ALLOCA 1
  2020. EOF
  2021.  
  2022.  
  2023. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2024. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2025.   echo $ac_n "(cached) $ac_c" 1>&6
  2026. else
  2027.   cat > conftest.$ac_ext <<EOF
  2028. #line 2029 "configure"
  2029. #include "confdefs.h"
  2030. #if defined(CRAY) && ! defined(CRAY2)
  2031. webecray
  2032. #else
  2033. wenotbecray
  2034. #endif
  2035.  
  2036. EOF
  2037. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2038.   egrep "webecray" >/dev/null 2>&1; then
  2039.   rm -rf conftest*
  2040.   ac_cv_os_cray=yes
  2041. else
  2042.   rm -rf conftest*
  2043.   ac_cv_os_cray=no
  2044. fi
  2045. rm -f conftest*
  2046.  
  2047. fi
  2048.  
  2049. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2050. if test $ac_cv_os_cray = yes; then
  2051. for ac_func in _getb67 GETB67 getb67; do
  2052.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2053. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2054.   echo $ac_n "(cached) $ac_c" 1>&6
  2055. else
  2056.   cat > conftest.$ac_ext <<EOF
  2057. #line 2058 "configure"
  2058. #include "confdefs.h"
  2059. /* System header to define __stub macros and hopefully few prototypes,
  2060.     which can conflict with char $ac_func(); below.  */
  2061. #include <assert.h>
  2062. /* Override any gcc2 internal prototype to avoid an error.  */
  2063. /* We use char because int might match the return type of a gcc2
  2064.     builtin and then its argument prototype would still apply.  */
  2065. char $ac_func();
  2066.  
  2067. int main() { return 0; }
  2068. int t() {
  2069.  
  2070. /* The GNU C library defines this for functions which it implements
  2071.     to always fail with ENOSYS.  Some functions are actually named
  2072.     something starting with __ and the normal name is an alias.  */
  2073. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2074. choke me
  2075. #else
  2076. $ac_func();
  2077. #endif
  2078.  
  2079. ; return 0; }
  2080. EOF
  2081. if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2082.   rm -rf conftest*
  2083.   eval "ac_cv_func_$ac_func=yes"
  2084. else
  2085.   rm -rf conftest*
  2086.   eval "ac_cv_func_$ac_func=no"
  2087. fi
  2088. rm -f conftest*
  2089.  
  2090. fi
  2091. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2092.   echo "$ac_t""yes" 1>&6
  2093.   cat >> confdefs.h <<EOF
  2094. #define CRAY_STACKSEG_END $ac_func
  2095. EOF
  2096.  
  2097.   break
  2098. else
  2099.   echo "$ac_t""no" 1>&6
  2100. fi
  2101.  
  2102. done
  2103. fi
  2104.  
  2105. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2106. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2107.   echo $ac_n "(cached) $ac_c" 1>&6
  2108. else
  2109.   if test "$cross_compiling" = yes; then
  2110.   ac_cv_c_stack_direction=0
  2111. else
  2112. cat > conftest.$ac_ext <<EOF
  2113. #line 2114 "configure"
  2114. #include "confdefs.h"
  2115. find_stack_direction ()
  2116. {
  2117.   static char *addr = 0;
  2118.   auto char dummy;
  2119.   if (addr == 0)
  2120.     {
  2121.       addr = &dummy;
  2122.       return find_stack_direction ();
  2123.     }
  2124.   else
  2125.     return (&dummy > addr) ? 1 : -1;
  2126. }
  2127. main ()
  2128. {
  2129.   exit (find_stack_direction() < 0);
  2130. }
  2131. EOF
  2132. { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2133. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2134.   ac_cv_c_stack_direction=1
  2135. else
  2136.   ac_cv_c_stack_direction=-1
  2137. fi
  2138. fi
  2139. rm -fr conftest*
  2140. fi
  2141.  
  2142. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2143. cat >> confdefs.h <<EOF
  2144. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2145. EOF
  2146.  
  2147. fi
  2148.  
  2149. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  2150. if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
  2151.   echo $ac_n "(cached) $ac_c" 1>&6
  2152. else
  2153.   if test "$cross_compiling" = yes; then
  2154.   ac_cv_func_memcmp=no
  2155. else
  2156. cat > conftest.$ac_ext <<EOF
  2157. #line 2158 "configure"
  2158. #include "confdefs.h"
  2159.  
  2160. main()
  2161. {
  2162.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  2163.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  2164. }
  2165.  
  2166. EOF
  2167. { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2168. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2169.   ac_cv_func_memcmp=yes
  2170. else
  2171.   ac_cv_func_memcmp=no
  2172. fi
  2173. fi
  2174. rm -fr conftest*
  2175. fi
  2176.  
  2177. echo "$ac_t""$ac_cv_func_memcmp" 1>&6
  2178. test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
  2179.  
  2180. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2181. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2182.   echo $ac_n "(cached) $ac_c" 1>&6
  2183. else
  2184.   cat > conftest.$ac_ext <<EOF
  2185. #line 2186 "configure"
  2186. #include "confdefs.h"
  2187. /* System header to define __stub macros and hopefully few prototypes,
  2188.     which can conflict with char vprintf(); below.  */
  2189. #include <assert.h>
  2190. /* Override any gcc2 internal prototype to avoid an error.  */
  2191. /* We use char because int might match the return type of a gcc2
  2192.     builtin and then its argument prototype would still apply.  */
  2193. char vprintf();
  2194.  
  2195. int main() { return 0; }
  2196. int t() {
  2197.  
  2198. /* The GNU C library defines this for functions which it implements
  2199.     to always fail with ENOSYS.  Some functions are actually named
  2200.     something starting with __ and the normal name is an alias.  */
  2201. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2202. choke me
  2203. #else
  2204. vprintf();
  2205. #endif
  2206.  
  2207. ; return 0; }
  2208. EOF
  2209. if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2210.   rm -rf conftest*
  2211.   eval "ac_cv_func_vprintf=yes"
  2212. else
  2213.   rm -rf conftest*
  2214.   eval "ac_cv_func_vprintf=no"
  2215. fi
  2216. rm -f conftest*
  2217.  
  2218. fi
  2219. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2220.   echo "$ac_t""yes" 1>&6
  2221.   cat >> confdefs.h <<\EOF
  2222. #define HAVE_VPRINTF 1
  2223. EOF
  2224.  
  2225. else
  2226.   echo "$ac_t""no" 1>&6
  2227. fi
  2228.  
  2229. if test "$ac_cv_func_vprintf" != yes; then
  2230. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2231. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2232.   echo $ac_n "(cached) $ac_c" 1>&6
  2233. else
  2234.   cat > conftest.$ac_ext <<EOF
  2235. #line 2236 "configure"
  2236. #include "confdefs.h"
  2237. /* System header to define __stub macros and hopefully few prototypes,
  2238.     which can conflict with char _doprnt(); below.  */
  2239. #include <assert.h>
  2240. /* Override any gcc2 internal prototype to avoid an error.  */
  2241. /* We use char because int might match the return type of a gcc2
  2242.     builtin and then its argument prototype would still apply.  */
  2243. char _doprnt();
  2244.  
  2245. int main() { return 0; }
  2246. int t() {
  2247.  
  2248. /* The GNU C library defines this for functions which it implements
  2249.     to always fail with ENOSYS.  Some functions are actually named
  2250.     something starting with __ and the normal name is an alias.  */
  2251. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2252. choke me
  2253. #else
  2254. _doprnt();
  2255. #endif
  2256.  
  2257. ; return 0; }
  2258. EOF
  2259. if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2260.   rm -rf conftest*
  2261.   eval "ac_cv_func__doprnt=yes"
  2262. else
  2263.   rm -rf conftest*
  2264.   eval "ac_cv_func__doprnt=no"
  2265. fi
  2266. rm -f conftest*
  2267.  
  2268. fi
  2269. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2270.   echo "$ac_t""yes" 1>&6
  2271.   cat >> confdefs.h <<\EOF
  2272. #define HAVE_DOPRNT 1
  2273. EOF
  2274.  
  2275. else
  2276.   echo "$ac_t""no" 1>&6
  2277. fi
  2278.  
  2279. fi
  2280.  
  2281. echo $ac_n "checking for working strtod""... $ac_c" 1>&6
  2282. if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
  2283.   echo $ac_n "(cached) $ac_c" 1>&6
  2284. else
  2285.   if test "$cross_compiling" = yes; then
  2286.   ac_cv_func_strtod=no
  2287. else
  2288. cat > conftest.$ac_ext <<EOF
  2289. #line 2290 "configure"
  2290. #include "confdefs.h"
  2291.  
  2292. double strtod ();
  2293. int
  2294. main()
  2295. {
  2296.   {
  2297.     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
  2298.     char *string = " +69";
  2299.     char *term;
  2300.     double value;
  2301.     value = strtod (string, &term);
  2302.     if (value != 69 || term != (string + 4))
  2303.       exit (1);
  2304.   }
  2305.  
  2306.   {
  2307.     /* Under Solaris 2.4, strtod returns the wrong value for the
  2308.        terminating character under some conditions.  */
  2309.     char *string = "NaN";
  2310.     char *term;
  2311.     strtod (string, &term);
  2312.     if (term != string && *(term - 1) == 0)
  2313.       exit (1);
  2314.   }
  2315.   exit (0);
  2316. }
  2317.  
  2318. EOF
  2319. { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2320. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2321.   ac_cv_func_strtod=yes
  2322. else
  2323.   ac_cv_func_strtod=no
  2324. fi
  2325. fi
  2326. rm -fr conftest*
  2327. fi
  2328.  
  2329. echo "$ac_t""$ac_cv_func_strtod" 1>&6
  2330. test $ac_cv_func_strtod = no && LIBOBJS="$LIBOBJS strtod.o"
  2331. if test $ac_cv_func_strtod = no; then
  2332.   for ac_func in pow
  2333. do
  2334. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2335. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2336.   echo $ac_n "(cached) $ac_c" 1>&6
  2337. else
  2338.   cat > conftest.$ac_ext <<EOF
  2339. #line 2340 "configure"
  2340. #include "confdefs.h"
  2341. /* System header to define __stub macros and hopefully few prototypes,
  2342.     which can conflict with char $ac_func(); below.  */
  2343. #include <assert.h>
  2344. /* Override any gcc2 internal prototype to avoid an error.  */
  2345. /* We use char because int might match the return type of a gcc2
  2346.     builtin and then its argument prototype would still apply.  */
  2347. char $ac_func();
  2348.  
  2349. int main() { return 0; }
  2350. int t() {
  2351.  
  2352. /* The GNU C library defines this for functions which it implements
  2353.     to always fail with ENOSYS.  Some functions are actually named
  2354.     something starting with __ and the normal name is an alias.  */
  2355. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2356. choke me
  2357. #else
  2358. $ac_func();
  2359. #endif
  2360.  
  2361. ; return 0; }
  2362. EOF
  2363. if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2364.   rm -rf conftest*
  2365.   eval "ac_cv_func_$ac_func=yes"
  2366. else
  2367.   rm -rf conftest*
  2368.   eval "ac_cv_func_$ac_func=no"
  2369. fi
  2370. rm -f conftest*
  2371.  
  2372. fi
  2373. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2374.   echo "$ac_t""yes" 1>&6
  2375.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2376.   cat >> confdefs.h <<EOF
  2377. #define $ac_tr_func 1
  2378. EOF
  2379.  
  2380. else
  2381.   echo "$ac_t""no" 1>&6
  2382. fi
  2383. done
  2384.  
  2385.   if test $ac_cv_func_pow = no; then
  2386.     echo $ac_n "checking for -lm""... $ac_c" 1>&6
  2387. ac_lib_var=`echo m'_'pow | tr './+\055' '__p_'`
  2388. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2389.   echo $ac_n "(cached) $ac_c" 1>&6
  2390. else
  2391.   ac_save_LIBS="$LIBS"
  2392. LIBS="-lm  $LIBS"
  2393. cat > conftest.$ac_ext <<EOF
  2394. #line 2395 "configure"
  2395. #include "confdefs.h"
  2396. /* Override any gcc2 internal prototype to avoid an error.  */
  2397. /* We use char because int might match the return type of a gcc2
  2398.     builtin and then its argument prototype would still apply.  */
  2399. char pow();
  2400.  
  2401. int main() { return 0; }
  2402. int t() {
  2403. pow()
  2404. ; return 0; }
  2405. EOF
  2406. if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2407.   rm -rf conftest*
  2408.   eval "ac_cv_lib_$ac_lib_var=yes"
  2409. else
  2410.   rm -rf conftest*
  2411.   eval "ac_cv_lib_$ac_lib_var=no"
  2412. fi
  2413. rm -f conftest*
  2414. LIBS="$ac_save_LIBS"
  2415.  
  2416. fi
  2417. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2418.   echo "$ac_t""yes" 1>&6
  2419.     ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2420.   cat >> confdefs.h <<EOF
  2421. #define $ac_tr_lib 1
  2422. EOF
  2423.  
  2424.   LIBS="-lm $LIBS"
  2425.  
  2426. else
  2427.   echo "$ac_t""no" 1>&6
  2428. fi
  2429.  
  2430.   fi
  2431. fi
  2432.  
  2433. for ac_func in memcpy memmove memset stpcpy strtoul
  2434. do
  2435. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2436. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2437.   echo $ac_n "(cached) $ac_c" 1>&6
  2438. else
  2439.   cat > conftest.$ac_ext <<EOF
  2440. #line 2441 "configure"
  2441. #include "confdefs.h"
  2442. /* System header to define __stub macros and hopefully few prototypes,
  2443.     which can conflict with char $ac_func(); below.  */
  2444. #include <assert.h>
  2445. /* Override any gcc2 internal prototype to avoid an error.  */
  2446. /* We use char because int might match the return type of a gcc2
  2447.     builtin and then its argument prototype would still apply.  */
  2448. char $ac_func();
  2449.  
  2450. int main() { return 0; }
  2451. int t() {
  2452.  
  2453. /* The GNU C library defines this for functions which it implements
  2454.     to always fail with ENOSYS.  Some functions are actually named
  2455.     something starting with __ and the normal name is an alias.  */
  2456. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2457. choke me
  2458. #else
  2459. $ac_func();
  2460. #endif
  2461.  
  2462. ; return 0; }
  2463. EOF
  2464. if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2465.   rm -rf conftest*
  2466.   eval "ac_cv_func_$ac_func=yes"
  2467. else
  2468.   rm -rf conftest*
  2469.   eval "ac_cv_func_$ac_func=no"
  2470. fi
  2471. rm -f conftest*
  2472.  
  2473. fi
  2474. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2475.   echo "$ac_t""yes" 1>&6
  2476.   :
  2477. else
  2478.   echo "$ac_t""no" 1>&6
  2479. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2480. fi
  2481.  
  2482. done
  2483.  
  2484. echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
  2485. if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  2486.   echo $ac_n "(cached) $ac_c" 1>&6
  2487. else
  2488.   cat > conftest.$ac_ext <<EOF
  2489. #line 2490 "configure"
  2490. #include "confdefs.h"
  2491. /* System header to define __stub macros and hopefully few prototypes,
  2492.     which can conflict with char getopt_long(); below.  */
  2493. #include <assert.h>
  2494. /* Override any gcc2 internal prototype to avoid an error.  */
  2495. /* We use char because int might match the return type of a gcc2
  2496.     builtin and then its argument prototype would still apply.  */
  2497. char getopt_long();
  2498.  
  2499. int main() { return 0; }
  2500. int t() {
  2501.  
  2502. /* The GNU C library defines this for functions which it implements
  2503.     to always fail with ENOSYS.  Some functions are actually named
  2504.     something starting with __ and the normal name is an alias.  */
  2505. #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
  2506. choke me
  2507. #else
  2508. getopt_long();
  2509. #endif
  2510.  
  2511. ; return 0; }
  2512. EOF
  2513. if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2514.   rm -rf conftest*
  2515.   eval "ac_cv_func_getopt_long=yes"
  2516. else
  2517.   rm -rf conftest*
  2518.   eval "ac_cv_func_getopt_long=no"
  2519. fi
  2520. rm -f conftest*
  2521.  
  2522. fi
  2523. if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  2524.   echo "$ac_t""yes" 1>&6
  2525.   :
  2526. else
  2527.   echo "$ac_t""no" 1>&6
  2528. LIBOBJS="$LIBOBJS getopt1.o getopt.o"
  2529. fi
  2530.  
  2531.  
  2532.  
  2533. for ac_func in valloc getpagesize
  2534. do
  2535. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2536. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2537.   echo $ac_n "(cached) $ac_c" 1>&6
  2538. else
  2539.   cat > conftest.$ac_ext <<EOF
  2540. #line 2541 "configure"
  2541. #include "confdefs.h"
  2542. /* System header to define __stub macros and hopefully few prototypes,
  2543.     which can conflict with char $ac_func(); below.  */
  2544. #include <assert.h>
  2545. /* Override any gcc2 internal prototype to avoid an error.  */
  2546. /* We use char because int might match the return type of a gcc2
  2547.     builtin and then its argument prototype would still apply.  */
  2548. char $ac_func();
  2549.  
  2550. int main() { return 0; }
  2551. int t() {
  2552.  
  2553. /* The GNU C library defines this for functions which it implements
  2554.     to always fail with ENOSYS.  Some functions are actually named
  2555.     something starting with __ and the normal name is an alias.  */
  2556. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2557. choke me
  2558. #else
  2559. $ac_func();
  2560. #endif
  2561.  
  2562. ; return 0; }
  2563. EOF
  2564. if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2565.   rm -rf conftest*
  2566.   eval "ac_cv_func_$ac_func=yes"
  2567. else
  2568.   rm -rf conftest*
  2569.   eval "ac_cv_func_$ac_func=no"
  2570. fi
  2571. rm -f conftest*
  2572.  
  2573. fi
  2574. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2575.   echo "$ac_t""yes" 1>&6
  2576.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2577.   cat >> confdefs.h <<EOF
  2578. #define $ac_tr_func 1
  2579. EOF
  2580.  
  2581. else
  2582.   echo "$ac_t""no" 1>&6
  2583. fi
  2584. done
  2585.  
  2586. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  2587. if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
  2588.   echo $ac_n "(cached) $ac_c" 1>&6
  2589. else
  2590.   if test "$cross_compiling" = yes; then
  2591.   ac_cv_func_mmap=no
  2592. else
  2593. cat > conftest.$ac_ext <<EOF
  2594. #line 2595 "configure"
  2595. #include "confdefs.h"
  2596.  
  2597. /* Thanks to Mike Haertel and Jim Avera for this test. */
  2598. #include <sys/types.h>
  2599. #include <fcntl.h>
  2600. #include <sys/mman.h>
  2601.  
  2602. #ifndef HAVE_GETPAGESIZE
  2603. # include <sys/param.h>
  2604. # ifdef EXEC_PAGESIZE
  2605. #  define getpagesize() EXEC_PAGESIZE
  2606. # else
  2607. #  ifdef NBPG
  2608. #   define getpagesize() NBPG * CLSIZE
  2609. #   ifndef CLSIZE
  2610. #    define CLSIZE 1
  2611. #   endif
  2612. #  else
  2613. #   ifdef NBPC
  2614. #    define getpagesize() NBPC
  2615. #   else
  2616. #    define getpagesize() PAGESIZE /* SVR4 */
  2617. #   endif
  2618. #  endif
  2619. # endif
  2620. #endif
  2621.  
  2622. #ifndef HAVE_VALLOC
  2623. # define valloc malloc
  2624. #endif
  2625.  
  2626. #ifdef __cplusplus
  2627. extern "C" { void *valloc(unsigned), *malloc(unsigned); }
  2628. #else
  2629. char *valloc(), *malloc();
  2630. #endif
  2631.  
  2632. int
  2633. main()
  2634. {
  2635.   char *buf1, *buf2, *buf3;
  2636.   int i = getpagesize(), j;
  2637.   int i2 = i * 2;
  2638.   int fd;
  2639.  
  2640.   buf1 = (char *)valloc(i2);
  2641.   buf2 = (char *)valloc(i);
  2642.   buf3 = (char *)malloc(i2);
  2643.   for (j = 0; j < i2; ++j)
  2644.     *(buf1 + j) = rand();
  2645.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  2646.   write(fd, buf1, i2);
  2647.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  2648.   for (j = 0; j < i; ++j)
  2649.     if (*(buf1 + j) != *(buf2 + j))
  2650.       exit(1);
  2651.   lseek(fd, (long)i, 0);
  2652.   read(fd, buf2, i); /* read into mapped memory -- file should not change */
  2653.   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
  2654.   lseek(fd, (long)0, 0);
  2655.   read(fd, buf3, i2);
  2656.   for (j = 0; j < i2; ++j)
  2657.     if (*(buf1 + j) != *(buf3 + j))
  2658.       exit(1);
  2659.   exit(0);
  2660. }
  2661.  
  2662. EOF
  2663. { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2664. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2665.   ac_cv_func_mmap=yes
  2666. else
  2667.   ac_cv_func_mmap=no
  2668. fi
  2669. fi
  2670. rm -fr conftest*
  2671. fi
  2672.  
  2673. echo "$ac_t""$ac_cv_func_mmap" 1>&6
  2674. if test $ac_cv_func_mmap = yes; then
  2675.   cat >> confdefs.h <<\EOF
  2676. #define HAVE_MMAP 1
  2677. EOF
  2678.  
  2679. fi
  2680.  
  2681.                               
  2682.    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
  2683. unistd.h values.h
  2684. do
  2685. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2686. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2687. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2688.   echo $ac_n "(cached) $ac_c" 1>&6
  2689. else
  2690.   cat > conftest.$ac_ext <<EOF
  2691. #line 2692 "configure"
  2692. #include "confdefs.h"
  2693. #include <$ac_hdr>
  2694. EOF
  2695. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2696. { (eval echo configure:2697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2697. ac_err=`grep -v '^ *+' conftest.out`
  2698. if test -z "$ac_err"; then
  2699.   rm -rf conftest*
  2700.   eval "ac_cv_header_$ac_safe=yes"
  2701. else
  2702.   echo "$ac_err" >&5
  2703.   rm -rf conftest*
  2704.   eval "ac_cv_header_$ac_safe=no"
  2705. fi
  2706. rm -f conftest*
  2707. fi
  2708. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2709.   echo "$ac_t""yes" 1>&6
  2710.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2711.   cat >> confdefs.h <<EOF
  2712. #define $ac_tr_hdr 1
  2713. EOF
  2714.  
  2715. else
  2716.   echo "$ac_t""no" 1>&6
  2717. fi
  2718. done
  2719.  
  2720.    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  2721. __argz_count __argz_stringify __argz_next
  2722. do
  2723. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2724. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2725.   echo $ac_n "(cached) $ac_c" 1>&6
  2726. else
  2727.   cat > conftest.$ac_ext <<EOF
  2728. #line 2729 "configure"
  2729. #include "confdefs.h"
  2730. /* System header to define __stub macros and hopefully few prototypes,
  2731.     which can conflict with char $ac_func(); below.  */
  2732. #include <assert.h>
  2733. /* Override any gcc2 internal prototype to avoid an error.  */
  2734. /* We use char because int might match the return type of a gcc2
  2735.     builtin and then its argument prototype would still apply.  */
  2736. char $ac_func();
  2737.  
  2738. int main() { return 0; }
  2739. int t() {
  2740.  
  2741. /* The GNU C library defines this for functions which it implements
  2742.     to always fail with ENOSYS.  Some functions are actually named
  2743.     something starting with __ and the normal name is an alias.  */
  2744. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2745. choke me
  2746. #else
  2747. $ac_func();
  2748. #endif
  2749.  
  2750. ; return 0; }
  2751. EOF
  2752. if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2753.   rm -rf conftest*
  2754.   eval "ac_cv_func_$ac_func=yes"
  2755. else
  2756.   rm -rf conftest*
  2757.   eval "ac_cv_func_$ac_func=no"
  2758. fi
  2759. rm -f conftest*
  2760.  
  2761. fi
  2762. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2763.   echo "$ac_t""yes" 1>&6
  2764.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2765.   cat >> confdefs.h <<EOF
  2766. #define $ac_tr_func 1
  2767. EOF
  2768.  
  2769. else
  2770.   echo "$ac_t""no" 1>&6
  2771. fi
  2772. done
  2773.  
  2774.  
  2775.    if test "${ac_cv_func_stpcpy+set}" != "set"; then
  2776.      for ac_func in stpcpy
  2777. do
  2778. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2779. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2780.   echo $ac_n "(cached) $ac_c" 1>&6
  2781. else
  2782.   cat > conftest.$ac_ext <<EOF
  2783. #line 2784 "configure"
  2784. #include "confdefs.h"
  2785. /* System header to define __stub macros and hopefully few prototypes,
  2786.     which can conflict with char $ac_func(); below.  */
  2787. #include <assert.h>
  2788. /* Override any gcc2 internal prototype to avoid an error.  */
  2789. /* We use char because int might match the return type of a gcc2
  2790.     builtin and then its argument prototype would still apply.  */
  2791. char $ac_func();
  2792.  
  2793. int main() { return 0; }
  2794. int t() {
  2795.  
  2796. /* The GNU C library defines this for functions which it implements
  2797.     to always fail with ENOSYS.  Some functions are actually named
  2798.     something starting with __ and the normal name is an alias.  */
  2799. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2800. choke me
  2801. #else
  2802. $ac_func();
  2803. #endif
  2804.  
  2805. ; return 0; }
  2806. EOF
  2807. if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2808.   rm -rf conftest*
  2809.   eval "ac_cv_func_$ac_func=yes"
  2810. else
  2811.   rm -rf conftest*
  2812.   eval "ac_cv_func_$ac_func=no"
  2813. fi
  2814. rm -f conftest*
  2815.  
  2816. fi
  2817. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2818.   echo "$ac_t""yes" 1>&6
  2819.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2820.   cat >> confdefs.h <<EOF
  2821. #define $ac_tr_func 1
  2822. EOF
  2823.  
  2824. else
  2825.   echo "$ac_t""no" 1>&6
  2826. fi
  2827. done
  2828.  
  2829.    fi
  2830.    if test "${ac_cv_func_stpcpy}" = "yes"; then
  2831.      cat >> confdefs.h <<\EOF
  2832. #define HAVE_STPCPY 1
  2833. EOF
  2834.  
  2835.    fi
  2836.  
  2837.    if test $ac_cv_header_locale_h = yes; then
  2838.     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  2839. if eval "test \"`echo '$''{'ud_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  2840.   echo $ac_n "(cached) $ac_c" 1>&6
  2841. else
  2842.   cat > conftest.$ac_ext <<EOF
  2843. #line 2844 "configure"
  2844. #include "confdefs.h"
  2845. #include <locale.h>
  2846. int main() { return 0; }
  2847. int t() {
  2848. return LC_MESSAGES
  2849. ; return 0; }
  2850. EOF
  2851. if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2852.   rm -rf conftest*
  2853.   ud_cv_val_LC_MESSAGES=yes
  2854. else
  2855.   rm -rf conftest*
  2856.   ud_cv_val_LC_MESSAGES=no
  2857. fi
  2858. rm -f conftest*
  2859.  
  2860. fi
  2861.  
  2862. echo "$ac_t""$ud_cv_val_LC_MESSAGES" 1>&6
  2863.     if test $ud_cv_val_LC_MESSAGES = yes; then
  2864.       cat >> confdefs.h <<\EOF
  2865. #define HAVE_LC_MESSAGES 1
  2866. EOF
  2867.  
  2868.     fi
  2869.   fi
  2870.    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  2871.         # Check whether --enable-nls or --disable-nls was given.
  2872. if test "${enable_nls+set}" = set; then
  2873.   enableval="$enable_nls"
  2874.   USE_NLS=$enableval
  2875. else
  2876.   USE_NLS=yes
  2877. fi
  2878.  
  2879.     echo "$ac_t""$USE_NLS" 1>&6
  2880.     
  2881.  
  2882.     USE_INCLUDED_LIBINTL=no
  2883.  
  2884.         if test "$USE_NLS" = "yes"; then
  2885.       cat >> confdefs.h <<\EOF
  2886. #define ENABLE_NLS 1
  2887. EOF
  2888.  
  2889.       echo $ac_n "checking for explicitly using GNU gettext""... $ac_c" 1>&6
  2890.       # Check whether --with-included-gettext or --without-included-gettext was given.
  2891. if test "${with_included_gettext+set}" = set; then
  2892.   withval="$with_included_gettext"
  2893.   nls_cv_force_use_gnu_gettext=$withval
  2894. else
  2895.   nls_cv_force_use_gnu_gettext=no
  2896. fi
  2897.  
  2898.       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
  2899.  
  2900.       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  2901.       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  2902.                                 nls_cv_header_intl=
  2903.     nls_cv_header_libgt=
  2904.     CATOBJEXT=NONE
  2905.  
  2906.     ac_safe=`echo "libintl.h" | tr './\055' '___'`
  2907. echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
  2908. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2909.   echo $ac_n "(cached) $ac_c" 1>&6
  2910. else
  2911.   cat > conftest.$ac_ext <<EOF
  2912. #line 2913 "configure"
  2913. #include "confdefs.h"
  2914. #include <libintl.h>
  2915. EOF
  2916. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2917. { (eval echo configure:2918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2918. ac_err=`grep -v '^ *+' conftest.out`
  2919. if test -z "$ac_err"; then
  2920.   rm -rf conftest*
  2921.   eval "ac_cv_header_$ac_safe=yes"
  2922. else
  2923.   echo "$ac_err" >&5
  2924.   rm -rf conftest*
  2925.   eval "ac_cv_header_$ac_safe=no"
  2926. fi
  2927. rm -f conftest*
  2928. fi
  2929. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2930.   echo "$ac_t""yes" 1>&6
  2931.   echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  2932. ac_lib_var=`echo intl'_'bindtextdomain | tr './+\055' '__p_'`
  2933. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  2934.   echo $ac_n "(cached) $ac_c" 1>&6
  2935. else
  2936.   ac_save_LIBS="$LIBS"
  2937. LIBS="-lintl  $LIBS"
  2938. cat > conftest.$ac_ext <<EOF
  2939. #line 2940 "configure"
  2940. #include "confdefs.h"
  2941. /* Override any gcc2 internal prototype to avoid an error.  */
  2942. /* We use char because int might match the return type of a gcc2
  2943.     builtin and then its argument prototype would still apply.  */
  2944. char bindtextdomain();
  2945.  
  2946. int main() { return 0; }
  2947. int t() {
  2948. bindtextdomain()
  2949. ; return 0; }
  2950. EOF
  2951. if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2952.   rm -rf conftest*
  2953.   eval "ac_cv_lib_$ac_lib_var=yes"
  2954. else
  2955.   rm -rf conftest*
  2956.   eval "ac_cv_lib_$ac_lib_var=no"
  2957. fi
  2958. rm -f conftest*
  2959. LIBS="$ac_save_LIBS"
  2960.  
  2961. fi
  2962. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  2963.   echo "$ac_t""yes" 1>&6
  2964.     ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2965.   cat >> confdefs.h <<EOF
  2966. #define $ac_tr_lib 1
  2967. EOF
  2968.  
  2969.   LIBS="-lintl $LIBS"
  2970.  
  2971. else
  2972.   echo "$ac_t""no" 1>&6
  2973. fi
  2974.  
  2975.        echo $ac_n "checking for gettext""... $ac_c" 1>&6
  2976. if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
  2977.   echo $ac_n "(cached) $ac_c" 1>&6
  2978. else
  2979.   cat > conftest.$ac_ext <<EOF
  2980. #line 2981 "configure"
  2981. #include "confdefs.h"
  2982. /* System header to define __stub macros and hopefully few prototypes,
  2983.     which can conflict with char gettext(); below.  */
  2984. #include <assert.h>
  2985. /* Override any gcc2 internal prototype to avoid an error.  */
  2986. /* We use char because int might match the return type of a gcc2
  2987.     builtin and then its argument prototype would still apply.  */
  2988. char gettext();
  2989.  
  2990. int main() { return 0; }
  2991. int t() {
  2992.  
  2993. /* The GNU C library defines this for functions which it implements
  2994.     to always fail with ENOSYS.  Some functions are actually named
  2995.     something starting with __ and the normal name is an alias.  */
  2996. #if defined (__stub_gettext) || defined (__stub___gettext)
  2997. choke me
  2998. #else
  2999. gettext();
  3000. #endif
  3001.  
  3002. ; return 0; }
  3003. EOF
  3004. if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3005.   rm -rf conftest*
  3006.   eval "ac_cv_func_gettext=yes"
  3007. else
  3008.   rm -rf conftest*
  3009.   eval "ac_cv_func_gettext=no"
  3010. fi
  3011. rm -f conftest*
  3012.  
  3013. fi
  3014. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  3015.   echo "$ac_t""yes" 1>&6
  3016.   cat >> confdefs.h <<\EOF
  3017. #define HAVE_GETTEXT 1
  3018. EOF
  3019.  
  3020.           # Extract the first word of "msgfmt", so it can be a program name with args.
  3021. set dummy msgfmt; ac_word=$2
  3022. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3023. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3024.   echo $ac_n "(cached) $ac_c" 1>&6
  3025. else
  3026.   case "$MSGFMT" in
  3027.   /*)
  3028.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3029.   ;;
  3030.   *)
  3031.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3032.   for ac_dir in $PATH; do
  3033.     test -z "$ac_dir" && ac_dir=.
  3034.     if test -f $ac_dir/$ac_word; then
  3035.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3036.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3037.     break
  3038.       fi
  3039.     fi
  3040.   done
  3041.   IFS="$ac_save_ifs"
  3042.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  3043.   ;;
  3044. esac
  3045. fi
  3046. MSGFMT="$ac_cv_path_MSGFMT"
  3047. if test -n "$MSGFMT"; then
  3048.   echo "$ac_t""$MSGFMT" 1>&6
  3049. else
  3050.   echo "$ac_t""no" 1>&6
  3051. fi
  3052.           if test "$MSGFMT" != "no"; then
  3053.         for ac_func in dcgettext
  3054. do
  3055. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3056. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3057.   echo $ac_n "(cached) $ac_c" 1>&6
  3058. else
  3059.   cat > conftest.$ac_ext <<EOF
  3060. #line 3061 "configure"
  3061. #include "confdefs.h"
  3062. /* System header to define __stub macros and hopefully few prototypes,
  3063.     which can conflict with char $ac_func(); below.  */
  3064. #include <assert.h>
  3065. /* Override any gcc2 internal prototype to avoid an error.  */
  3066. /* We use char because int might match the return type of a gcc2
  3067.     builtin and then its argument prototype would still apply.  */
  3068. char $ac_func();
  3069.  
  3070. int main() { return 0; }
  3071. int t() {
  3072.  
  3073. /* The GNU C library defines this for functions which it implements
  3074.     to always fail with ENOSYS.  Some functions are actually named
  3075.     something starting with __ and the normal name is an alias.  */
  3076. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3077. choke me
  3078. #else
  3079. $ac_func();
  3080. #endif
  3081.  
  3082. ; return 0; }
  3083. EOF
  3084. if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3085.   rm -rf conftest*
  3086.   eval "ac_cv_func_$ac_func=yes"
  3087. else
  3088.   rm -rf conftest*
  3089.   eval "ac_cv_func_$ac_func=no"
  3090. fi
  3091. rm -f conftest*
  3092.  
  3093. fi
  3094. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3095.   echo "$ac_t""yes" 1>&6
  3096.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3097.   cat >> confdefs.h <<EOF
  3098. #define $ac_tr_func 1
  3099. EOF
  3100.  
  3101. else
  3102.   echo "$ac_t""no" 1>&6
  3103. fi
  3104. done
  3105.  
  3106.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3107. set dummy gmsgfmt; ac_word=$2
  3108. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3109. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3110.   echo $ac_n "(cached) $ac_c" 1>&6
  3111. else
  3112.   case "$GMSGFMT" in
  3113.   /*)
  3114.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3115.   ;;
  3116.   *)
  3117.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3118.   for ac_dir in $PATH; do
  3119.     test -z "$ac_dir" && ac_dir=.
  3120.     if test -f $ac_dir/$ac_word; then
  3121.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3122.       break
  3123.     fi
  3124.   done
  3125.   IFS="$ac_save_ifs"
  3126.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3127.   ;;
  3128. esac
  3129. fi
  3130. GMSGFMT="$ac_cv_path_GMSGFMT"
  3131. if test -n "$GMSGFMT"; then
  3132.   echo "$ac_t""$GMSGFMT" 1>&6
  3133. else
  3134.   echo "$ac_t""no" 1>&6
  3135. fi
  3136.  
  3137.         # Extract the first word of "xgettext", so it can be a program name with args.
  3138. set dummy xgettext; ac_word=$2
  3139. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3140. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3141.   echo $ac_n "(cached) $ac_c" 1>&6
  3142. else
  3143.   case "$XGETTEXT" in
  3144.   /*)
  3145.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3146.   ;;
  3147.   *)
  3148.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3149.   for ac_dir in $PATH; do
  3150.     test -z "$ac_dir" && ac_dir=.
  3151.     if test -f $ac_dir/$ac_word; then
  3152.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3153.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3154.     break
  3155.       fi
  3156.     fi
  3157.   done
  3158.   IFS="$ac_save_ifs"
  3159.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3160.   ;;
  3161. esac
  3162. fi
  3163. XGETTEXT="$ac_cv_path_XGETTEXT"
  3164. if test -n "$XGETTEXT"; then
  3165.   echo "$ac_t""$XGETTEXT" 1>&6
  3166. else
  3167.   echo "$ac_t""no" 1>&6
  3168. fi
  3169.  
  3170.         cat > conftest.$ac_ext <<EOF
  3171. #line 3172 "configure"
  3172. #include "confdefs.h"
  3173.  
  3174. int main() { return 0; }
  3175. int t() {
  3176. extern int _nl_msg_cat_cntr;
  3177.                    return _nl_msg_cat_cntr
  3178. ; return 0; }
  3179. EOF
  3180. if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3181.   rm -rf conftest*
  3182.   CATOBJEXT=.gmo
  3183.            DATADIRNAME=share
  3184. else
  3185.   rm -rf conftest*
  3186.   CATOBJEXT=.mo
  3187.            DATADIRNAME=lib
  3188. fi
  3189. rm -f conftest*
  3190.  
  3191.         INSTOBJEXT=.mo
  3192.           fi
  3193. else
  3194.   echo "$ac_t""no" 1>&6
  3195. fi
  3196.  
  3197. else
  3198.   echo "$ac_t""no" 1>&6
  3199. fi
  3200.  
  3201.  
  3202.         if test "$CATOBJEXT" = "NONE"; then
  3203.       echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
  3204.       # Check whether --with-catgets or --without-catgets was given.
  3205. if test "${with_catgets+set}" = set; then
  3206.   withval="$with_catgets"
  3207.   nls_cv_use_catgets=$withval
  3208. else
  3209.   nls_cv_use_catgets=no
  3210. fi
  3211.  
  3212.       echo "$ac_t""$nls_cv_use_catgets" 1>&6
  3213.  
  3214.       if test "$nls_cv_use_catgets" = "yes"; then
  3215.                 echo $ac_n "checking for -li""... $ac_c" 1>&6
  3216. ac_lib_var=`echo i'_'main | tr './+\055' '__p_'`
  3217. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3218.   echo $ac_n "(cached) $ac_c" 1>&6
  3219. else
  3220.   ac_save_LIBS="$LIBS"
  3221. LIBS="-li  $LIBS"
  3222. cat > conftest.$ac_ext <<EOF
  3223. #line 3224 "configure"
  3224. #include "confdefs.h"
  3225.  
  3226. int main() { return 0; }
  3227. int t() {
  3228. main()
  3229. ; return 0; }
  3230. EOF
  3231. if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3232.   rm -rf conftest*
  3233.   eval "ac_cv_lib_$ac_lib_var=yes"
  3234. else
  3235.   rm -rf conftest*
  3236.   eval "ac_cv_lib_$ac_lib_var=no"
  3237. fi
  3238. rm -f conftest*
  3239. LIBS="$ac_save_LIBS"
  3240.  
  3241. fi
  3242. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3243.   echo "$ac_t""yes" 1>&6
  3244.     ac_tr_lib=HAVE_LIB`echo i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3245.   cat >> confdefs.h <<EOF
  3246. #define $ac_tr_lib 1
  3247. EOF
  3248.  
  3249.   LIBS="-li $LIBS"
  3250.  
  3251. else
  3252.   echo "$ac_t""no" 1>&6
  3253. fi
  3254.  
  3255.         echo $ac_n "checking for catgets""... $ac_c" 1>&6
  3256. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  3257.   echo $ac_n "(cached) $ac_c" 1>&6
  3258. else
  3259.   cat > conftest.$ac_ext <<EOF
  3260. #line 3261 "configure"
  3261. #include "confdefs.h"
  3262. /* System header to define __stub macros and hopefully few prototypes,
  3263.     which can conflict with char catgets(); below.  */
  3264. #include <assert.h>
  3265. /* Override any gcc2 internal prototype to avoid an error.  */
  3266. /* We use char because int might match the return type of a gcc2
  3267.     builtin and then its argument prototype would still apply.  */
  3268. char catgets();
  3269.  
  3270. int main() { return 0; }
  3271. int t() {
  3272.  
  3273. /* The GNU C library defines this for functions which it implements
  3274.     to always fail with ENOSYS.  Some functions are actually named
  3275.     something starting with __ and the normal name is an alias.  */
  3276. #if defined (__stub_catgets) || defined (__stub___catgets)
  3277. choke me
  3278. #else
  3279. catgets();
  3280. #endif
  3281.  
  3282. ; return 0; }
  3283. EOF
  3284. if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3285.   rm -rf conftest*
  3286.   eval "ac_cv_func_catgets=yes"
  3287. else
  3288.   rm -rf conftest*
  3289.   eval "ac_cv_func_catgets=no"
  3290. fi
  3291. rm -f conftest*
  3292.  
  3293. fi
  3294. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  3295.   echo "$ac_t""yes" 1>&6
  3296.   cat >> confdefs.h <<\EOF
  3297. #define HAVE_CATGETS 1
  3298. EOF
  3299.  
  3300.            INTLOBJS="\$(CATOBJS)"
  3301.            # Extract the first word of "gencat", so it can be a program name with args.
  3302. set dummy gencat; ac_word=$2
  3303. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3304. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  3305.   echo $ac_n "(cached) $ac_c" 1>&6
  3306. else
  3307.   case "$GENCAT" in
  3308.   /*)
  3309.   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  3310.   ;;
  3311.   *)
  3312.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3313.   for ac_dir in $PATH; do
  3314.     test -z "$ac_dir" && ac_dir=.
  3315.     if test -f $ac_dir/$ac_word; then
  3316.       ac_cv_path_GENCAT="$ac_dir/$ac_word"
  3317.       break
  3318.     fi
  3319.   done
  3320.   IFS="$ac_save_ifs"
  3321.   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  3322.   ;;
  3323. esac
  3324. fi
  3325. GENCAT="$ac_cv_path_GENCAT"
  3326. if test -n "$GENCAT"; then
  3327.   echo "$ac_t""$GENCAT" 1>&6
  3328. else
  3329.   echo "$ac_t""no" 1>&6
  3330. fi
  3331.            if test "$GENCAT" != "no"; then
  3332.          # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3333. set dummy gmsgfmt; ac_word=$2
  3334. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3335. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3336.   echo $ac_n "(cached) $ac_c" 1>&6
  3337. else
  3338.   case "$GMSGFMT" in
  3339.   /*)
  3340.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3341.   ;;
  3342.   *)
  3343.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3344.   for ac_dir in $PATH; do
  3345.     test -z "$ac_dir" && ac_dir=.
  3346.     if test -f $ac_dir/$ac_word; then
  3347.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3348.       break
  3349.     fi
  3350.   done
  3351.   IFS="$ac_save_ifs"
  3352.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3353.   ;;
  3354. esac
  3355. fi
  3356. GMSGFMT="$ac_cv_path_GMSGFMT"
  3357. if test -n "$GMSGFMT"; then
  3358.   echo "$ac_t""$GMSGFMT" 1>&6
  3359. else
  3360.   echo "$ac_t""no" 1>&6
  3361. fi
  3362.  
  3363.          if test "$GMSGFMT" = "no"; then
  3364.            # Extract the first word of "msgfmt", so it can be a program name with args.
  3365. set dummy msgfmt; ac_word=$2
  3366. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3367. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3368.   echo $ac_n "(cached) $ac_c" 1>&6
  3369. else
  3370.   case "$GMSGFMT" in
  3371.   /*)
  3372.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3373.   ;;
  3374.   *)
  3375.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3376.   for ac_dir in $PATH; do
  3377.     test -z "$ac_dir" && ac_dir=.
  3378.     if test -f $ac_dir/$ac_word; then
  3379.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3380.     ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3381.     break
  3382.       fi
  3383.     fi
  3384.   done
  3385.   IFS="$ac_save_ifs"
  3386.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3387.   ;;
  3388. esac
  3389. fi
  3390. GMSGFMT="$ac_cv_path_GMSGFMT"
  3391. if test -n "$GMSGFMT"; then
  3392.   echo "$ac_t""$GMSGFMT" 1>&6
  3393. else
  3394.   echo "$ac_t""no" 1>&6
  3395. fi
  3396.  
  3397.          fi
  3398.          # Extract the first word of "xgettext", so it can be a program name with args.
  3399. set dummy xgettext; ac_word=$2
  3400. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3401. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3402.   echo $ac_n "(cached) $ac_c" 1>&6
  3403. else
  3404.   case "$XGETTEXT" in
  3405.   /*)
  3406.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3407.   ;;
  3408.   *)
  3409.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3410.   for ac_dir in $PATH; do
  3411.     test -z "$ac_dir" && ac_dir=.
  3412.     if test -f $ac_dir/$ac_word; then
  3413.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3414.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3415.     break
  3416.       fi
  3417.     fi
  3418.   done
  3419.   IFS="$ac_save_ifs"
  3420.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3421.   ;;
  3422. esac
  3423. fi
  3424. XGETTEXT="$ac_cv_path_XGETTEXT"
  3425. if test -n "$XGETTEXT"; then
  3426.   echo "$ac_t""$XGETTEXT" 1>&6
  3427. else
  3428.   echo "$ac_t""no" 1>&6
  3429. fi
  3430.  
  3431.          USE_INCLUDED_LIBINTL=yes
  3432.          CATOBJEXT=.cat
  3433.          INSTOBJEXT=.cat
  3434.          DATADIRNAME=lib
  3435.          INTLDEPS="../intl/libintl.a"
  3436.          INTLLIBS=$INTLDEPS
  3437.          LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3438.          nls_cv_header_intl=intl/libintl.h
  3439.          nls_cv_header_libgt=intl/libgettext.h
  3440.            fi
  3441. else
  3442.   echo "$ac_t""no" 1>&6
  3443. fi
  3444.  
  3445.       fi
  3446.         fi
  3447.  
  3448.         if test "$CATOBJEXT" = "NONE"; then
  3449.                   nls_cv_use_gnu_gettext=yes
  3450.         fi
  3451.       fi
  3452.  
  3453.       if test "$nls_cv_use_gnu_gettext" = "yes"; then
  3454.                 INTLOBJS="\$(GETTOBJS)"
  3455.         # Extract the first word of "msgfmt", so it can be a program name with args.
  3456. set dummy msgfmt; ac_word=$2
  3457. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3458. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3459.   echo $ac_n "(cached) $ac_c" 1>&6
  3460. else
  3461.   case "$MSGFMT" in
  3462.   /*)
  3463.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3464.   ;;
  3465.   *)
  3466.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3467.   for ac_dir in $PATH; do
  3468.     test -z "$ac_dir" && ac_dir=.
  3469.     if test -f $ac_dir/$ac_word; then
  3470.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3471.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3472.     break
  3473.       fi
  3474.     fi
  3475.   done
  3476.   IFS="$ac_save_ifs"
  3477.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  3478.   ;;
  3479. esac
  3480. fi
  3481. MSGFMT="$ac_cv_path_MSGFMT"
  3482. if test -n "$MSGFMT"; then
  3483.   echo "$ac_t""$MSGFMT" 1>&6
  3484. else
  3485.   echo "$ac_t""no" 1>&6
  3486. fi
  3487.  
  3488.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3489. set dummy gmsgfmt; ac_word=$2
  3490. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3491. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3492.   echo $ac_n "(cached) $ac_c" 1>&6
  3493. else
  3494.   case "$GMSGFMT" in
  3495.   /*)
  3496.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3497.   ;;
  3498.   *)
  3499.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3500.   for ac_dir in $PATH; do
  3501.     test -z "$ac_dir" && ac_dir=.
  3502.     if test -f $ac_dir/$ac_word; then
  3503.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3504.       break
  3505.     fi
  3506.   done
  3507.   IFS="$ac_save_ifs"
  3508.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3509.   ;;
  3510. esac
  3511. fi
  3512. GMSGFMT="$ac_cv_path_GMSGFMT"
  3513. if test -n "$GMSGFMT"; then
  3514.   echo "$ac_t""$GMSGFMT" 1>&6
  3515. else
  3516.   echo "$ac_t""no" 1>&6
  3517. fi
  3518.  
  3519.         # Extract the first word of "xgettext", so it can be a program name with args.
  3520. set dummy xgettext; ac_word=$2
  3521. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3522. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3523.   echo $ac_n "(cached) $ac_c" 1>&6
  3524. else
  3525.   case "$XGETTEXT" in
  3526.   /*)
  3527.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3528.   ;;
  3529.   *)
  3530.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3531.   for ac_dir in $PATH; do
  3532.     test -z "$ac_dir" && ac_dir=.
  3533.     if test -f $ac_dir/$ac_word; then
  3534.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3535.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3536.     break
  3537.       fi
  3538.     fi
  3539.   done
  3540.   IFS="$ac_save_ifs"
  3541.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3542.   ;;
  3543. esac
  3544. fi
  3545. XGETTEXT="$ac_cv_path_XGETTEXT"
  3546. if test -n "$XGETTEXT"; then
  3547.   echo "$ac_t""$XGETTEXT" 1>&6
  3548. else
  3549.   echo "$ac_t""no" 1>&6
  3550. fi
  3551.  
  3552.         
  3553.     USE_INCLUDED_LIBINTL=yes
  3554.         CATOBJEXT=.gmo
  3555.         INSTOBJEXT=.mo
  3556.         DATADIRNAME=share
  3557.     INTLDEPS="../intl/libintl.a"
  3558.     INTLLIBS=$INTLDEPS
  3559.     LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3560.         nls_cv_header_intl=intl/libintl.h
  3561.         nls_cv_header_libgt=intl/libgettext.h
  3562.       fi
  3563.  
  3564.             if test "$XGETTEXT" != ":"; then
  3565.             if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  3566.       : ;
  3567.     else
  3568.       echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
  3569.       XGETTEXT=":"
  3570.     fi
  3571.       fi
  3572.  
  3573.       # We need to process the po/ directory.
  3574.       POSUB=po
  3575.     else
  3576.       DATADIRNAME=share
  3577.       nls_cv_header_intl=intl/libintl.h
  3578.       nls_cv_header_libgt=intl/libgettext.h
  3579.     fi
  3580.  
  3581.     # If this is used in GNU gettext we have to set USE_NLS to `yes'
  3582.     # because some of the sources are only built for this goal.
  3583.     if test "$PACKAGE" = gettext; then
  3584.       USE_NLS=yes
  3585.       USE_INCLUDED_LIBINTL=yes
  3586.     fi
  3587.  
  3588.                 for lang in $ALL_LINGUAS; do
  3589.       GMOFILES="$GMOFILES $lang.gmo"
  3590.       POFILES="$POFILES $lang.po"
  3591.     done
  3592.  
  3593.         
  3594.     
  3595.     
  3596.     
  3597.     
  3598.     
  3599.     
  3600.     
  3601.     
  3602.     
  3603.     
  3604.   
  3605.  
  3606.    if test "x$CATOBJEXT" != "x"; then
  3607.      if test "x$ALL_LINGUAS" = "x"; then
  3608.        LINGUAS=
  3609.      else
  3610.        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  3611.        NEW_LINGUAS=
  3612.        for lang in ${LINGUAS=$ALL_LINGUAS}; do
  3613.          case "$ALL_LINGUAS" in
  3614.           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  3615.          esac
  3616.        done
  3617.        LINGUAS=$NEW_LINGUAS
  3618.        echo "$ac_t""$LINGUAS" 1>&6
  3619.      fi
  3620.  
  3621.           if test -n "$LINGUAS"; then
  3622.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  3623.      fi
  3624.    fi
  3625.  
  3626.             test -d intl || mkdir intl
  3627.    if test "$CATOBJEXT" = ".cat"; then
  3628.      ac_safe=`echo "linux/version.h" | tr './\055' '___'`
  3629. echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  3630. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3631.   echo $ac_n "(cached) $ac_c" 1>&6
  3632. else
  3633.   cat > conftest.$ac_ext <<EOF
  3634. #line 3635 "configure"
  3635. #include "confdefs.h"
  3636. #include <linux/version.h>
  3637. EOF
  3638. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3639. { (eval echo configure:3640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3640. ac_err=`grep -v '^ *+' conftest.out`
  3641. if test -z "$ac_err"; then
  3642.   rm -rf conftest*
  3643.   eval "ac_cv_header_$ac_safe=yes"
  3644. else
  3645.   echo "$ac_err" >&5
  3646.   rm -rf conftest*
  3647.   eval "ac_cv_header_$ac_safe=no"
  3648. fi
  3649. rm -f conftest*
  3650. fi
  3651. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3652.   echo "$ac_t""yes" 1>&6
  3653.   msgformat=linux
  3654. else
  3655.   echo "$ac_t""no" 1>&6
  3656. msgformat=xopen
  3657. fi
  3658.  
  3659.  
  3660.                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  3661.    fi
  3662.       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  3663.      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
  3664.  
  3665.             if test "$PACKAGE" = "gettext"; then
  3666.      GT_NO="#NO#"
  3667.      GT_YES=
  3668.    else
  3669.      GT_NO=
  3670.      GT_YES="#YES#"
  3671.    fi
  3672.    
  3673.    
  3674.  
  3675.             MKINSTALLDIRS=
  3676.    if test $ac_aux_dir; then
  3677.      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  3678.    fi
  3679.    if test -z $MKINSTALLDIRS; then
  3680.      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  3681.    fi
  3682.    
  3683.  
  3684.          test -d po || mkdir po
  3685.    if test "x$srcdir" != "x."; then
  3686.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  3687.        posrcprefix="$srcdir/"
  3688.      else
  3689.        posrcprefix="../$srcdir/"
  3690.      fi
  3691.    else
  3692.      posrcprefix="../"
  3693.    fi
  3694.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  3695.     < $srcdir/po/POTFILES.in > po/POTFILES
  3696.   
  3697.  
  3698.  
  3699. trap '' 1 2 15
  3700. cat > confcache <<\EOF
  3701. # This file is a shell script that caches the results of configure
  3702. # tests run on this system so they can be shared between configure
  3703. # scripts and configure runs.  It is not useful on other systems.
  3704. # If it contains results you don't want to keep, you may remove or edit it.
  3705. #
  3706. # By default, configure uses ./config.cache as the cache file,
  3707. # creating it if it does not exist already.  You can give configure
  3708. # the --cache-file=FILE option to use a different cache file; that is
  3709. # what configure does when it calls configure scripts in
  3710. # subdirectories, so they share the cache.
  3711. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3712. # config.status only pays attention to the cache file if you give it the
  3713. # --recheck option to rerun configure.
  3714. #
  3715. EOF
  3716. # Ultrix sh set writes to stderr and can't be redirected directly,
  3717. # and sets the high bit in the cache file unless we assign to the vars.
  3718. (set) 2>&1 |
  3719.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3720.   >> confcache
  3721. if cmp -s $cache_file confcache; then
  3722.   :
  3723. else
  3724.   if test -w $cache_file; then
  3725.     echo "updating cache $cache_file"
  3726.     cat confcache > $cache_file
  3727.   else
  3728.     echo "not updating unwritable cache $cache_file"
  3729.   fi
  3730. fi
  3731. rm -f confcache
  3732.  
  3733. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3734.  
  3735. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3736. # Let make expand exec_prefix.
  3737. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3738.  
  3739. # Any assignment to VPATH causes Sun make to only execute
  3740. # the first set of double-colon rules, so remove it if not needed.
  3741. # If there is a colon in the path, we need to keep it.
  3742. if test "x$srcdir" = x.; then
  3743.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3744. fi
  3745.  
  3746. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3747.  
  3748. DEFS=-DHAVE_CONFIG_H
  3749.  
  3750. # Without the "./", some shells look in PATH for config.status.
  3751. : ${CONFIG_STATUS=./config.status}
  3752.  
  3753. echo creating $CONFIG_STATUS
  3754. rm -f $CONFIG_STATUS
  3755. cat > $CONFIG_STATUS <<EOF
  3756. #! /bin/sh
  3757. # Generated automatically by configure.
  3758. # Run this file to recreate the current configuration.
  3759. # This directory was configured as follows,
  3760. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3761. #
  3762. # $0 $ac_configure_args
  3763. #
  3764. # Compiler output produced by configure, useful for debugging
  3765. # configure, is in ./config.log if it exists.
  3766.  
  3767. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3768. for ac_option
  3769. do
  3770.   case "\$ac_option" in
  3771.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3772.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3773.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3774.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3775.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  3776.     exit 0 ;;
  3777.   -help | --help | --hel | --he | --h)
  3778.     echo "\$ac_cs_usage"; exit 0 ;;
  3779.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3780.   esac
  3781. done
  3782.  
  3783. ac_given_srcdir=$srcdir
  3784. ac_given_INSTALL="$INSTALL"
  3785.  
  3786. trap 'rm -fr `echo "Makefile doc/Makefile intl/Makefile lib/Makefile \
  3787. man/Makefile po/Makefile.in src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3788. EOF
  3789. cat >> $CONFIG_STATUS <<EOF
  3790.  
  3791. # Protect against being on the right side of a sed subst in config.status.
  3792. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3793.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3794. $ac_vpsub
  3795. $extrasub
  3796. s%@CFLAGS@%$CFLAGS%g
  3797. s%@CPPFLAGS@%$CPPFLAGS%g
  3798. s%@CXXFLAGS@%$CXXFLAGS%g
  3799. s%@DEFS@%$DEFS%g
  3800. s%@LDFLAGS@%$LDFLAGS%g
  3801. s%@LIBS@%$LIBS%g
  3802. s%@exec_prefix@%$exec_prefix%g
  3803. s%@prefix@%$prefix%g
  3804. s%@program_transform_name@%$program_transform_name%g
  3805. s%@bindir@%$bindir%g
  3806. s%@sbindir@%$sbindir%g
  3807. s%@libexecdir@%$libexecdir%g
  3808. s%@datadir@%$datadir%g
  3809. s%@sysconfdir@%$sysconfdir%g
  3810. s%@sharedstatedir@%$sharedstatedir%g
  3811. s%@localstatedir@%$localstatedir%g
  3812. s%@libdir@%$libdir%g
  3813. s%@includedir@%$includedir%g
  3814. s%@oldincludedir@%$oldincludedir%g
  3815. s%@infodir@%$infodir%g
  3816. s%@mandir@%$mandir%g
  3817. s%@PACKAGE@%$PACKAGE%g
  3818. s%@VERSION@%$VERSION%g
  3819. s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
  3820. s%@MAINT@%$MAINT%g
  3821. s%@README_ALPHA@%$README_ALPHA%g
  3822. s%@CC@%$CC%g
  3823. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3824. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3825. s%@SET_MAKE@%$SET_MAKE%g
  3826. s%@CPP@%$CPP%g
  3827. s%@RANLIB@%$RANLIB%g
  3828. s%@REGEXOBJ@%$REGEXOBJ%g
  3829. s%@U@%$U%g
  3830. s%@ANSI2KNR@%$ANSI2KNR%g
  3831. s%@ALLOCA@%$ALLOCA%g
  3832. s%@LIBOBJS@%$LIBOBJS%g
  3833. s%@USE_NLS@%$USE_NLS%g
  3834. s%@MSGFMT@%$MSGFMT%g
  3835. s%@GMSGFMT@%$GMSGFMT%g
  3836. s%@XGETTEXT@%$XGETTEXT%g
  3837. s%@GENCAT@%$GENCAT%g
  3838. s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
  3839. s%@CATALOGS@%$CATALOGS%g
  3840. s%@CATOBJEXT@%$CATOBJEXT%g
  3841. s%@DATADIRNAME@%$DATADIRNAME%g
  3842. s%@GMOFILES@%$GMOFILES%g
  3843. s%@INSTOBJEXT@%$INSTOBJEXT%g
  3844. s%@INTLDEPS@%$INTLDEPS%g
  3845. s%@INTLLIBS@%$INTLLIBS%g
  3846. s%@INTLOBJS@%$INTLOBJS%g
  3847. s%@POFILES@%$POFILES%g
  3848. s%@POSUB@%$POSUB%g
  3849. s%@GT_NO@%$GT_NO%g
  3850. s%@GT_YES@%$GT_YES%g
  3851. s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
  3852.  
  3853. CEOF
  3854. EOF
  3855. cat >> $CONFIG_STATUS <<EOF
  3856.  
  3857. CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile intl/Makefile lib/Makefile \
  3858. man/Makefile po/Makefile.in src/Makefile"}
  3859. EOF
  3860. cat >> $CONFIG_STATUS <<\EOF
  3861. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3862.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3863.   case "$ac_file" in
  3864.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3865.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3866.   *) ac_file_in="${ac_file}.in" ;;
  3867.   esac
  3868.  
  3869.   # Adjust relative srcdir, etc. for subdirectories.
  3870.  
  3871.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3872.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3873.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3874.     # The file is in a subdirectory.
  3875.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3876.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3877.     # A "../" for each directory in $ac_dir_suffix.
  3878.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3879.   else
  3880.     ac_dir_suffix= ac_dots=
  3881.   fi
  3882.  
  3883.   case "$ac_given_srcdir" in
  3884.   .)  srcdir=.
  3885.       if test -z "$ac_dots"; then top_srcdir=.
  3886.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3887.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3888.   *) # Relative path.
  3889.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3890.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3891.   esac
  3892.  
  3893.   case "$ac_given_INSTALL" in
  3894.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3895.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3896.   esac
  3897.   echo creating "$ac_file"
  3898.   rm -f "$ac_file"
  3899.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3900.   case "$ac_file" in
  3901.   *Makefile*) ac_comsub="1i\\
  3902. # $configure_input" ;;
  3903.   *) ac_comsub= ;;
  3904.   esac
  3905.   sed -e "$ac_comsub
  3906. s%@configure_input@%$configure_input%g
  3907. s%@srcdir@%$srcdir%g
  3908. s%@top_srcdir@%$top_srcdir%g
  3909. s%@INSTALL@%$INSTALL%g
  3910. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3911. fi; done
  3912. rm -f conftest.subs
  3913.  
  3914. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3915. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3916. #
  3917. # ac_d sets the value in "#define NAME VALUE" lines.
  3918. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3919. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3920. ac_dC='\3'
  3921. ac_dD='%g'
  3922. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3923. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3924. ac_uB='\([     ]\)%\1#\2define\3'
  3925. ac_uC=' '
  3926. ac_uD='\4%g'
  3927. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3928. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3929. ac_eB='$%\1#\2define\3'
  3930. ac_eC=' '
  3931. ac_eD='%g'
  3932.  
  3933. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  3934. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3935.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3936.   case "$ac_file" in
  3937.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3938.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3939.   *) ac_file_in="${ac_file}.in" ;;
  3940.   esac
  3941.  
  3942.   echo creating $ac_file
  3943.  
  3944.   rm -f conftest.frag conftest.in conftest.out
  3945.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3946.  
  3947. EOF
  3948.  
  3949. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3950. # the proper values into config.h.in to produce config.h.  And first:
  3951. # Protect against being on the right side of a sed subst in config.status.
  3952. # Protect against being in an unquoted here document in config.status.
  3953. rm -f conftest.vals
  3954. cat > conftest.hdr <<\EOF
  3955. s/[\\&%]/\\&/g
  3956. s%[\\$`]%\\&%g
  3957. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3958. s%ac_d%ac_u%gp
  3959. s%ac_u%ac_e%gp
  3960. EOF
  3961. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3962. rm -f conftest.hdr
  3963.  
  3964. # This sed command replaces #undef with comments.  This is necessary, for
  3965. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3966. # on some systems where configure will not decide to define it.
  3967. cat >> conftest.vals <<\EOF
  3968. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3969. EOF
  3970.  
  3971. # Break up conftest.vals because some shells have a limit on
  3972. # the size of here documents, and old seds have small limits too.
  3973. # Maximum number of lines to put in a single here document.
  3974. ac_max_here_lines=12
  3975.  
  3976. rm -f conftest.tail
  3977. while :
  3978. do
  3979.   ac_lines=`grep -c . conftest.vals`
  3980.   # grep -c gives empty output for an empty file on some AIX systems.
  3981.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3982.   # Write a limited-size here document to conftest.frag.
  3983.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3984.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3985.   echo 'CEOF
  3986.   sed -f conftest.frag conftest.in > conftest.out
  3987.   rm -f conftest.in
  3988.   mv conftest.out conftest.in
  3989. ' >> $CONFIG_STATUS
  3990.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3991.   rm -f conftest.vals
  3992.   mv conftest.tail conftest.vals
  3993. done
  3994. rm -f conftest.vals
  3995.  
  3996. cat >> $CONFIG_STATUS <<\EOF
  3997.   rm -f conftest.frag conftest.h
  3998.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3999.   cat conftest.in >> conftest.h
  4000.   rm -f conftest.in
  4001.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  4002.     echo "$ac_file is unchanged"
  4003.     rm -f conftest.h
  4004.   else
  4005.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4006.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4007.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4008.       # The file is in a subdirectory.
  4009.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  4010.     fi
  4011.     rm -f $ac_file
  4012.     mv conftest.h $ac_file
  4013.   fi
  4014. fi; done
  4015.  
  4016. EOF
  4017.  
  4018. cat >> $CONFIG_STATUS <<EOF
  4019. ac_sources="$nls_cv_header_libgt"
  4020. ac_dests="$nls_cv_header_intl"
  4021. EOF
  4022.  
  4023. cat >> $CONFIG_STATUS <<\EOF
  4024. srcdir=$ac_given_srcdir
  4025. while test -n "$ac_sources"; do
  4026.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  4027.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  4028.  
  4029.   echo "linking $srcdir/$ac_source to $ac_dest"
  4030.  
  4031.   if test ! -r $srcdir/$ac_source; then
  4032.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  4033.   fi
  4034.   rm -f $ac_dest
  4035.  
  4036.   # Make relative symlinks.
  4037.   # Remove last slash and all that follows it.  Not all systems have dirname.
  4038.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  4039.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  4040.     # The dest file is in a subdirectory.
  4041.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  4042.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  4043.     # A "../" for each directory in $ac_dest_dir_suffix.
  4044.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  4045.   else
  4046.     ac_dest_dir_suffix= ac_dots=
  4047.   fi
  4048.  
  4049.   case "$srcdir" in
  4050.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  4051.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  4052.   esac
  4053.  
  4054.   # Make a symlink if possible; otherwise try a hard link.
  4055.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  4056.     ln $srcdir/$ac_source $ac_dest; then :
  4057.   else
  4058.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  4059.   fi
  4060. done
  4061.  
  4062. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile; test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  4063. exit 0
  4064. EOF
  4065. chmod +x $CONFIG_STATUS
  4066. rm -fr confdefs* $ac_clean_files
  4067. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  4068.  
  4069.